Documentation ¶
Index ¶
Constants ¶
View Source
const LockTableName = "distributedlock"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributedLock ¶
type DistributedLock struct { Id int Name string Status int Created string Updated string // contains filtered or unexported fields }
func New ¶
func New(mysqlDSN string, lockName string) *DistributedLock
func (*DistributedLock) Lock ¶
func (l *DistributedLock) Lock()
func (*DistributedLock) Unlock ¶
func (l *DistributedLock) Unlock()
Click to show internal directories.
Click to hide internal directories.