Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxConnsPerHost = 1 MaxIdleConnsPerHost = 1 )
View Source
const LeaderPrefix = "LEADER:"
Variables ¶
This section is empty.
Functions ¶
func NewSnapshot ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) InitRPCProxy ¶
func (*Node) ListenAndServe ¶
type Request ¶
Request represents an RPC request.
type Response ¶
Response represents an RPC response.
type SetCommand ¶
SetCommand represents a set command.
func (*SetCommand) Do ¶
func (c *SetCommand) Do(context interface{}) (interface{}, error)
func (*SetCommand) Marshal ¶
func (d *SetCommand) Marshal() ([]byte, error)
Marshal returns the encoded bytes.
func (*SetCommand) MarshalTo ¶
func (d *SetCommand) MarshalTo(buf []byte) (int, error)
MarshalTo marshals into buf and returns the number of bytes.
func (*SetCommand) Size ¶
func (d *SetCommand) Size() int
Size returns the size of the buffer required to represent the data when encoded.
func (*SetCommand) Type ¶
func (c *SetCommand) Type() uint64
func (*SetCommand) Unmarshal ¶
func (d *SetCommand) Unmarshal(data []byte) error
Unmarshal unmarshals from data.
Click to show internal directories.
Click to hide internal directories.