Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientAction ¶
type ClientAction string
ClientAction is used to route client requests to the appropriate handler
const ( Get ClientAction = "get" Put ClientAction = "put" Delete ClientAction = "delete" Exists ClientAction = "exists" List ClientAction = "list" DeleteTree ClientAction = "deleteTree" Watch ClientAction = "watch" WatchTree ClientAction = "watchTree" NewLock ClientAction = "newLock" AtomicPut ClientAction = "atomicPut" AtomicDelete ClientAction = "atomicDelete" )
ClientActions used to handle requests from clients
type Decoder ¶
type Decoder interface {
Decode(interface{}) error
}
Decoder performs stream decoding of the given value
func NewDecoder ¶
NewDecoder returns a Decoder for performing stream decoding from the given reader
type Encoder ¶
type Encoder interface {
Encode(interface{}) error
}
Encoder performs stream encoding of the given value
func NewEncoder ¶
NewEncoder returns an Encoder for performing stream encoding from the given reader
type MessageType ¶
type MessageType byte
MessageType is used for routing connections to the appropriate handler
const ( // RPCMessage is used the MessageType used for none-to-node communication RPCMessage MessageType = 10 + iota // ClientMessage is the MessageType used for communication from KV clients ClientMessage )
Click to show internal directories.
Click to hide internal directories.