Documentation
¶
Overview ¶
Package txlock provides transaction-scoped PostgreSQL advisory locks shared by persistence packages without creating internal package import cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvisoryXactLock ¶
AdvisoryXactLock acquires a PostgreSQL transaction-scoped advisory lock keyed by an arbitrary string. Concurrent transactions that request the same key run serially; transactions with different keys are unaffected.
func AgentAssignmentLockKey ¶
AgentAssignmentLockKey identifies one user's assignment to one Agent. Scope transitions that create the assignment and administrative revocations must use this exact key, otherwise a revoke can commit between their writes and be silently undone by the transition.
Types ¶
This section is empty.