Documentation ¶
Overview ¶
Package lock implements generic application-level locking mechanism based on pg "advisory lock" feature. see https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
func New ¶
func New(store *repository.Store) *Locker
Click to show internal directories.
Click to hide internal directories.