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, lockName string) *ExclusiveLocker
func (*ExclusiveLocker) GetToken ¶
func (l *ExclusiveLocker) GetToken() (token int64, lockTsNs int64)
func (*ExclusiveLocker) IsLocked ¶
func (l *ExclusiveLocker) IsLocked() bool
func (*ExclusiveLocker) ReleaseLock ¶
func (l *ExclusiveLocker) ReleaseLock()
func (*ExclusiveLocker) RequestLock ¶
func (l *ExclusiveLocker) RequestLock(clientName string)
func (*ExclusiveLocker) SetMessage ¶
func (l *ExclusiveLocker) SetMessage(message string)
Click to show internal directories.
Click to hide internal directories.