Documentation
¶
Index ¶
Constants ¶
View Source
const ( MAGIC_REQUEST = 0x80 MAGIC_RESPONSE = 0x81 HEADER_LENGTH = 24 )
View Source
const ( GET = CommandOpCode(0x00) SET = CommandOpCode(0x01) )
View Source
const ( SUCCESS = ResponseStatus(0x00) KEY_NOT_FOUND = ResponseStatus(0x01) KEY_EXISTS = ResponseStatus(0x02) VALUE_TOO_LARGE = ResponseStatus(0x03) INVALID_ARGUMENTS = ResponseStatus(0x04) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOpCode ¶
type CommandOpCode uint8
type Request ¶
type Response ¶
type Response struct {
Test string
OpCode CommandOpCode
Cas uint64
Opaque uint32
KeyLength uint16
ExtraLength byte
DataType byte
Status ResponseStatus
Flags uint32
TotalBodyLength uint32
Body []byte
}
func (*Response) TryParseBody ¶
func (*Response) TryParseHeader ¶
type ResponseStatus ¶
type ResponseStatus uint16
Click to show internal directories.
Click to hide internal directories.