Documentation
¶
Overview ¶
Package gossip provides a gossip registry based on hashicorp/memberlist
Index ¶
- Variables
- func Address(a string) registry.Option
- func Advertise(a string) registry.Option
- func Config(c *memberlist.Config) registry.Option
- func ConnectRetry(v bool) registry.Option
- func ConnectTimeout(td time.Duration) registry.Option
- func NewRegistry(opts ...registry.Option) registry.Registry
- func Secret(k []byte) registry.Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Advertise ¶
The address to advertise for other gossip members to connect to - host:port
func Config ¶
func Config(c *memberlist.Config) registry.Option
Config sets *memberlist.Config for configuring gossip
func ConnectRetry ¶
ConnectRetry enables reconnect to registry then connection closed, use with ConnectTimeout to specify how long retry
func ConnectTimeout ¶
ConnectTimeout sets the registry connect timeout. Use -1 to specify infinite timeout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.