Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DataDir string // where to store raft data. BindAddr string // serf addr. CommunicationPort int // port for raft and client connections StartJoinAddrs []string // addresses to join to Bootstrap bool // should bootstrap cluster? NodeName string // raft server id LeaderStartAddr string // mostly for testing ServerTLS *tls.Config PeerTLS *tls.Config }
Config handles all of the customizable values for Service.
type Coordinator ¶
type Coordinator struct { Config Config // contains filtered or unexported fields }
Coordinator handles connecting all of the independent components of the system. Mainly connecting the HTTP service and raft store is the main its main job.
func New ¶
func New(conf Config) (*Coordinator, error)
New sets up all of the fields in the Coordinator and makes the service ready for running.
func (*Coordinator) Close ¶
func (c *Coordinator) Close() error
Close shuts down the components and leaves the registry cluster.
Click to show internal directories.
Click to hide internal directories.