response

package
v0.0.0-...-8f072b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INVALID_COMMAND_ERR = "INVALID_COMMAND_ERR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheResponse

type CacheResponse struct {
	// GhostDB Cache Object
	Gobj object.CacheObject
	// Status of the result - 0 or 1 - fail or succeed
	Status int32
	// Message contains any textual data that is to
	// be sent back
	Message string
	// Error message returned if something went wrong
	// during command execution
	Error string
}

func BadCommandResponse

func BadCommandResponse(cmd string) CacheResponse

func NewCacheMissResponse

func NewCacheMissResponse() CacheResponse

func NewPingResponse

func NewPingResponse() CacheResponse

func NewResponseFromMessage

func NewResponseFromMessage(msg string, status int32) CacheResponse

func NewResponseFromValue

func NewResponseFromValue(value interface{}) CacheResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL