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
Click to show internal directories.
Click to hide internal directories.