Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceDiscovery ¶
type ServiceDiscovery interface {
// SetNodeAddr sets nodeAddr
SetNodeAddr(nodeAddr string)
// WatchService Listens for a new node to start
WatchService(watchChan WatchChan)
// UpdateInfo Updates the information for this node
UpdateInfo([]byte) error
// Register registers the NodeID and notify other nodes
Register() error
// WatchService Listens for a new node to start
GetServerList() (map[string]string, error)
}
ServiceDiscovery
Click to show internal directories.
Click to hide internal directories.