Documentation ¶
Overview ¶
Package sync is an interface for synchronization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultNamespace = "/micro/sync"
)
Functions ¶
Types ¶
type LeaderOption ¶
type LeaderOption func(o *LeaderOptions)
type LeaderOptions ¶
type LeaderOptions struct{}
type LeaderStatus ¶
type LeaderStatus int32
const ( FollowerStatus LeaderStatus = 0 CandidateStatus LeaderStatus = 1 ElectedStatus LeaderStatus = 2 )
type LockOption ¶
type LockOption func(o *LockOptions)
func LockTTL ¶
func LockTTL(t time.Duration) LockOption
func LockWait ¶
func LockWait(t time.Duration) LockOption
Click to show internal directories.
Click to hide internal directories.