Documentation ¶
Overview ¶
Implements a Protocol for rpcmux, that implements a Key-Value-Store API.
Just be warned. Unstable! API and protocol will change without notice.
Index ¶
Constants ¶
View Source
const ( CMD_Cancel = iota CMD_Get CMD_GetNoRedirect CMD_Put CMD_PutNoRedirect /* Returns a Log of hops. */ CMD_Trace /* Returns "ok" if the key is available, "not_found" otherwise. */ CMD_Touch )
Commands.
View Source
const ( RESP_None = iota RESP_Error RESP_Value RESP_NotFound )
Responses
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
func NewRequest() interface{}
func NewResponse ¶
func NewResponse() interface{}
func ReqIsCancel ¶
Types ¶
type Request ¶
Click to show internal directories.
Click to hide internal directories.