package
Version:
v0.0.0-...-a7d0425
Opens a new window with list of versions in this module.
Published: Jun 2, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package heimdall manages the acquisition of a lock from PostgreSQL
via the `pg_try_advisory_lock(int, int)` function.
Lock represents the components of a `pg_try_advisory_lock` lock.
New establishes a connection to the PostgreSQL database with a
connection string and creates a Lock.
Acquire attempts to acquire a lock from PostgreSQL using
`pg_try_advisory_lock`.
Release closes the connection to the database, which releases the
lock.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.