Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶ added in v0.1.0
type Pool struct {
// contains filtered or unexported fields
}
Pool implements a distlock.Locker backed by a pgxpool.Pool.
func NewPool ¶ added in v0.1.0
NewPool returns a lock struct backed by the provided connection pool.
The returned lock can be reused
func (*Pool) Lock ¶ added in v0.1.0
Lock attempts to take the lock identified by 'key', blocking and retrying on the period specified at creation until successful or the provided context is cancelled.
Click to show internal directories.
Click to hide internal directories.