Documentation ¶
Index ¶
- type ByteView
- type Client
- type Getter
- type GetterFunc
- type Group
- type PeerGetter
- type PeerPicker
- type Server
- func (s *Server) Get(ctx context.Context, in *pb.Request) (*pb.Response, error)
- func (s *Server) PickPeer(key string) (PeerGetter, bool)
- func (s *Server) SetPeers(peersAddr ...string)
- func (s *Server) Start() error
- func (s *Server) Stop()
- func (s *Server) Update(group, key string, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteView ¶
type ByteView struct {
// contains filtered or unexported fields
}
A ByteView holds an immutable view of bytes
type GetterFunc ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) RegisterPeers ¶
func (g *Group) RegisterPeers(peers PeerPicker)
type PeerGetter ¶
type PeerPicker ¶
Directories ¶
Path | Synopsis |
---|---|
Package cache provides cache strategy support of the kv system, currently we have fifo, lru (default), lfu ...
|
Package cache provides cache strategy support of the kv system, currently we have fifo, lru (default), lfu ... |
package config provides a global Config object
|
package config provides a global Config object |
package consistenthash allows nodes in the cluster to fetch cache from other nodes.
|
package consistenthash allows nodes in the cluster to fetch cache from other nodes. |
package proto stores RPC settings in this project
|
package proto stores RPC settings in this project |
package registry provides service discovery and registration with etcd
|
package registry provides service discovery and registration with etcd |
Click to show internal directories.
Click to hide internal directories.