Documentation ¶
Overview ¶
Package discovery supports suffrage nodes network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discovery ¶
type Discovery interface { util.Daemon LenNodes() int Nodes() []NodeConnInfo SetNotifyJoin(func(NodeConnInfo)) Discovery SetNotifyLeave(func(NodeConnInfo, []NodeConnInfo)) Discovery SetNotifyUpdate(func(NodeConnInfo)) Discovery }
type NodepoolDelegate ¶
type NodepoolDelegate struct { sync.Mutex *logging.Logging // contains filtered or unexported fields }
func NewNodepoolDelegate ¶
func (*NodepoolDelegate) NotifyJoin ¶
func (dg *NodepoolDelegate) NotifyJoin(ci NodeConnInfo)
func (*NodepoolDelegate) NotifyLeave ¶
func (dg *NodepoolDelegate) NotifyLeave(ci NodeConnInfo, lefts []NodeConnInfo)
func (*NodepoolDelegate) NotifyUpdate ¶
func (dg *NodepoolDelegate) NotifyUpdate(ci NodeConnInfo)
Directories ¶
Path | Synopsis |
---|---|
Package memberlist provides node discovery and failed nodes detection by hashicorp/memberlist.
|
Package memberlist provides node discovery and failed nodes detection by hashicorp/memberlist. |
Click to show internal directories.
Click to hide internal directories.