Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
func Lock(owner, id string)
Lock create new locker for provided id if it is not exists or takes existing, then locks it
func Once ¶
Once will return nil only to one caller for id provided in minute. Other callers will get error errExecuted
func UnlockForOwner ¶
func UnlockForOwner(owner string)
UnlockForOwner unlocks all lockers locked by owner
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.