Documentation ¶
Index ¶
- type DistKeyCache
- type Node
- func (n *Node) Create() error
- func (n *Node) Created() bool
- func (n *Node) DistKeyCacheGetter() fileservice.KeyRouterFactory
- func (n *Node) Join(existing []string) error
- func (n *Node) Joined() bool
- func (n *Node) Leave(timeout time.Duration) error
- func (n *Node) NumMembers() int
- func (n *Node) SetCacheServerAddrFn(f func() string)
- func (n *Node) SetJoined()
- func (n *Node) SetListenAddrFn(f func() string)
- func (n *Node) SetServiceAddrFn(f func() string)
- func (n *Node) UnsetJoined()
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistKeyCache ¶
type DistKeyCache struct {
// contains filtered or unexported fields
}
DistKeyCache keeps the key cache of local set/delete items and key information on remote nodes.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) DistKeyCacheGetter ¶
func (n *Node) DistKeyCacheGetter() fileservice.KeyRouterFactory
func (*Node) NumMembers ¶
func (*Node) SetCacheServerAddrFn ¶
func (*Node) SetListenAddrFn ¶
func (*Node) SetServiceAddrFn ¶
func (*Node) UnsetJoined ¶
func (n *Node) UnsetJoined()
type Option ¶
type Option func(*Node)
func WithCacheServerAddrFn ¶
func WithListenAddrFn ¶
func WithServiceAddrFn ¶
Click to show internal directories.
Click to hide internal directories.