Documentation ¶
Overview ¶
Package state stores and retrieves the peer information for coordination. Different backend stores should be supported. Currently only Consul is.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulConfig ¶
type ConsulConfig struct {
// contains filtered or unexported fields
}
ConsulConfig is how to connect to the consul agent
type ExternalState ¶
type ExternalState interface { IsBootstrap() (*Bootstrap, error) SetBootstrap() (*Bootstrap, error) Heartbeat() error Peers() (Peers, error) }
ExternalState is the interface for dealing with the external state store.
func NewConsul ¶
func NewConsul(config Config, consulConfig ConsulConfig) ExternalState
NewConsul creates a new consul impl of ExternalState
Click to show internal directories.
Click to hide internal directories.