Versions in this module Expand all Collapse all v0 v0.0.1 Jul 26, 2021 Changes in this version + type Discovery struct + Nodes *NodesManager + func NewDiscovery(info *NodeInfo, conf clientv3.Config, mgr *NodesManager) (dis *Discovery, err error) + func (d *Discovery) Pull() + func (d *Discovery) Watch() + type NodeInfo struct + Addr string + Name string + UniqueId string + type NodesManager struct + func NewNodeManager() (m *NodesManager) + func (n *NodesManager) AddNode(node *NodeInfo) + func (n *NodesManager) DelNode(id string) + func (n *NodesManager) Dump() + func (n *NodesManager) Pick(name string) *NodeInfo + type Register struct + func NewRegister(info *NodeInfo, conf clientv3.Config) (reg *Register, err error) + func (r *Register) Run() + func (r *Register) Stop()