Versions in this module Expand all Collapse all v3 v3.0.1 Nov 20, 2023 v3.0.0 Nov 20, 2023 Changes in this version + const DefaultLockID + var ErrLockNotImplemented = errors.New("lock not implemented") + var ErrUnlockNotImplemented = errors.New("unlock not implemented") + type SessionLocker interface + SessionLock func(ctx context.Context, conn *sql.Conn) error + SessionUnlock func(ctx context.Context, conn *sql.Conn) error + func NewPostgresSessionLocker(opts ...SessionLockerOption) (SessionLocker, error) + type SessionLockerOption interface + func WithLockID(lockID int64) SessionLockerOption + func WithLockTimeout(period, failureThreshold uint64) SessionLockerOption + func WithUnlockTimeout(period, failureThreshold uint64) SessionLockerOption