Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExclusiveLocker ¶
type ExclusiveLocker struct {
// contains filtered or unexported fields
}
func NewExclusiveLocker ¶
func NewExclusiveLocker(masterClient *wdclient.MasterClient) *ExclusiveLocker
func (*ExclusiveLocker) GetToken ¶
func (l *ExclusiveLocker) GetToken() (token int64, lockTsNs int64)
func (*ExclusiveLocker) IsLocking ¶
func (l *ExclusiveLocker) IsLocking() bool
func (*ExclusiveLocker) ReleaseLock ¶
func (l *ExclusiveLocker) ReleaseLock()
func (*ExclusiveLocker) RequestLock ¶
func (l *ExclusiveLocker) RequestLock()
Click to show internal directories.
Click to hide internal directories.