Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) GetLocalAllNodes() map[string]backend.Nodor
- func (c *Client) Log(format string, v ...interface{})
- func (c *Client) PickNode(key string) (backend.Nodor, bool)
- func (c *Client) PullAllNodes() ([]string, error)
- func (c *Client) PullNodes(prefix string) ([]string, error)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetLocalAllNodes ¶
GetLocalAllNodes 获取当前本地所以节点
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
远程节点
func (*Node) Del ¶
func (h *Node) Del(in *pb.DelRequest, out *pb.DelResponse) error
func (*Node) Set ¶
func (h *Node) Set(in *pb.SetRequest, out *pb.SetResponse) error
Click to show internal directories.
Click to hide internal directories.