Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NodeName string BindAddr string Tags map[string]string StartJoinAddrs []string }
Config has all the configurable fields for Registry.
type Handler ¶
Handler represents a interface to a internal handler that also needs information about any possible joins or leaves. In actual use the store.Store is passed here because Raft needs to know of any possible changes to the cluster.
type Manager ¶
type Manager struct { Config // contains filtered or unexported fields }
Manager handles service discovery and keeping track of the nodes currently in the cluster.
func New ¶
New creates a registry instance and sets up serf for service discovery. This function starts up the whole registry functionality by running an event handler, connection to existing nodes and managing possible joins/leaves.
Click to show internal directories.
Click to hide internal directories.