Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { ID string // contains filtered or unexported fields }
Cluster is a linked collection of servers
func New ¶
func New(processSetup server.Setup, serverCount int, heartbeatPause time.Duration, logger *zap.Logger) *Cluster
New will create a cluster with the specified number of servers
func (Cluster) MarshalJSON ¶ added in v1.0.0
MarshalJSON retrieves the target cluster as a json string
func (Cluster) Purge ¶
func (c Cluster) Purge()
Purge will stop all of the linked servers but not clear their references
func (Cluster) ReadEvent ¶
func (c Cluster) ReadEvent() interface{}
ReadEvent will retrieve a single event log of the servers' actions
func (Cluster) StartServer ¶
StartServer starts the server with the specified id in the cluster
func (Cluster) StopServer ¶
StopServer stops the server with the specified id in the cluster
Click to show internal directories.
Click to hide internal directories.