Documentation ¶
Overview ¶
sessionlock package provides support for application level distributed locks via advisory locks in PostgreSQL.
- https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS - https://samu.space/distributed-locking-with-postgres-advisory-locks/
Index ¶
Constants ¶
View Source
const IDPrefix string = "sessionlock-"
IDPrefix is prepended to any given lock name when computing the integer lock ID, to help prevent collisions with other clients that may be acquiring their own locks.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.