Documentation ¶
Overview ¶
Package simelection simulates a master election.
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 is a (flawed) simulated mastership election, which can be made to report multiple masters at the same time.
func (*Election) Masters ¶
Masters returns the current set of masters. There should be only one, but bugs happen...
func (*Election) SetMasters ¶
SetMasters sets multiple masters.
Click to show internal directories.
Click to hide internal directories.