Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Hosts defines the list of hosts in the form of ip:port where the port is the gossip port. Hosts []string }
Config represents the static discovery provider configuration
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery represents the static discovery provider
func NewDiscovery ¶
NewDiscovery creates an instance of the static discovery provider
func (*Discovery) Deregister ¶
Deregister removes this node from a service discovery directory.
func (*Discovery) DiscoverPeers ¶
DiscoverPeers returns a list of known nodes.
func (*Discovery) Initialize ¶
Initialize the discovery provider
Click to show internal directories.
Click to hide internal directories.