Documentation
¶
Index ¶
Constants ¶
View Source
const SWAN_ATOMIC_STORE_NODE_PATH = "%s/atomic-store"
View Source
const SWAN_LEADER_ELECTION_NODE_PATH = "%s/leader-election"
View Source
const ZK_FLAG_NONE = 0
Variables ¶
View Source
var (
ErrNormalExit = errors.New("normal exit 0")
)
View Source
var (
ZK_DEFAULT_ACL = zk.WorldACL(zk.PermAll)
)
Functions ¶
This section is empty.
Types ¶
type Leadership ¶ added in v0.1.11
type Leadership uint8
const ( LeadershipUnknown Leadership = 1 LeadershipLeader Leadership = 2 LeadershipFollower Leadership = 3 )
func (Leadership) String ¶ added in v0.1.11
func (l Leadership) String() string
Click to show internal directories.
Click to hide internal directories.