package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

AcquireDistributedLock creates a mutex with ETCD client, and returns a mutex release function.
GetOwnerKeyInfo gets the owner key and current revision.
GetOwnerOpValue gets the owner op value.
NewListenersWrapper creates a new OwnerListeners.
NewMockManager creates a new mock Manager.
NewOwnerManager creates a new Manager.
WatchOwnerForTest watches the ownerKey.

# Constants

List operation of types.
List operation of types.

# Variables

ManagerSessionTTL is the etcd session's TTL in seconds.
WaitTimeOnForceOwner is the time to wait before or after force to be owner.

# Structs

ListenersWrapper is a list of listeners.

# Interfaces

DDLOwnerChecker is used to check whether tidb is owner.
Listener is used to listen the ownerManager's owner state.
Manager is used to campaign the owner and manage the owner information.

# Type aliases

OpType is the owner key value operation type.