Documentation
¶
Overview ¶
Leader election implementation based on explore/echo algorithm. It builds a distributed spanning tree
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLamportMutexQueue ¶
func NewLamportMutexQueue() *lamportMutexQueue
func NewSnapshot ¶
Types ¶
type Extension ¶
type Extension interface {
// Hanlde handles messages of a specific type
Handle(h *handler, msg *com.Message) error
// Preflight initialised additional goroutines/communication paths
Preflight(ctx context.Context, h *handler) error
}
func NewConsensusExtension ¶
func NewControlExtension ¶
func NewDiscoveryExtension ¶
func NewRumorExtension ¶
NewRumorExtension returns the rumor handler + the message type
type Handler ¶
type Leader ¶
func (*Leader) ElectionComplete ¶
func (*Leader) PropagateChilds ¶
PropagateChilds propagates the leader election results across the child
Click to show internal directories.
Click to hide internal directories.