Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
Election message contains an array of previously visited server ids
func NewElection ¶
NewElection returns an instance of an Election
func (*Election) AddNotified ¶
AddNotified appends a new value to the notified list
func (*Election) GetHighest ¶
GetHighest will return the highest value in the notified list
func (*Election) NotifiedCount ¶ added in v0.2.1
NotifiedCount gets the number of items in the notified list
type Notify ¶
type Notify struct { Master string // contains filtered or unexported fields }
Notify contains a notice to set your current master
func (*Notify) AddVisited ¶
AddVisited appends the input server id to the visited list
Click to show internal directories.
Click to hide internal directories.