Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOCKER_INMEMORY = "inmemory" LOCKER_POSTGRES = "postgres" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryLocker ¶
type InMemoryLocker struct {
// contains filtered or unexported fields
}
func NewInMemoryLocker ¶
func NewInMemoryLocker() *InMemoryLocker
func (*InMemoryLocker) AcquireLock ¶
type PostgresLocker ¶
type PostgresLocker struct {
// contains filtered or unexported fields
}
func NewPostgresLocker ¶
func NewPostgresLocker(dsn string) (*PostgresLocker, error)
func (*PostgresLocker) AcquireLock ¶
Click to show internal directories.
Click to hide internal directories.