Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Member ¶
type Member struct { // UpdateChan is used to publish leadership updates to the server. This allows the server to // coordinate tasks such as scaling state garbage collection and the autoscaler, both of which // should only be run by the leader. UpdateChan chan *MembershipUpdate // contains filtered or unexported fields }
func (*Member) ClearLeadership ¶
func (m *Member) ClearLeadership()
ClearLeadership is used to coordinate the shutdown of the cluster membership processes so we can exist cleanly. This allows other servers to quickly take over as leader and therefore resume cluster operations.
func (*Member) Leader ¶
Leader is used to identify the clusters currently recognised leader and identify the associated HTTP addresses.
func (*Member) RunLeadershipLoop ¶
func (m *Member) RunLeadershipLoop()
type MembershipUpdate ¶
type MembershipUpdate struct { // IsLeader is used to determine whether or not the Sherpa server is acting as the cluster // leader. IsLeader bool // Msg is an optional message to pass which can be useful when logging update events. Msg string }
MembershipUpdate is the information used to update the server about leadership changes.
Click to show internal directories.
Click to hide internal directories.