Versions in this module Expand all Collapse all v0 v0.0.2 Jan 11, 2022 v0.0.1 Sep 15, 2021 Changes in this version + type ElectionState int32 + const ElectionDoingState + const ElectionReadyState + type PinkNode struct + func NewPinkNode(cli *etcd.Cli, eventBus *bus.EventBus) (*PinkNode, error) + func (n *PinkNode) NotifyState(state int) + func (n *PinkNode) Run() error + func (n *PinkNode) Stop() + type State int32 + const Follower + const Leader