Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockRepository ¶
type LockRepository interface { AcquireLock(ctx context.Context, owner string, name string, opts ...pglock.ClientOption) (*pglock.Lock, error) GetLock(ctx context.Context, name string) (*pglock.Lock, error) }
LockRepository the interface for the repository
func NewLockRepository ¶
func NewLockRepository(db *sql.DB) LockRepository
NewLockRepository creates a new storage type.
Click to show internal directories.
Click to hide internal directories.