Documentation ¶
Index ¶
- func AcquireLock(tx *sql.Tx, lockName, whoami string, desiredDuration time.Duration) (bool, time.Time, error)
- func ExtendLock(tx *sql.Tx, lockName, whoami string, desiredDuration time.Duration) (bool, time.Time, error)
- func PruneLocks(tx *sql.Tx) error
- func ReleaseLock(tx *sql.Tx, name, owner string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireLock ¶
func ExtendLock ¶
func PruneLocks ¶
pruneLocks removes every expired locks from the database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.