lock

package
v0.0.0-...-927d137 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeadlineDuration = 2 * time.Second
View Source
var RenewDuration = 750 * time.Millisecond

Functions

func NewGlobalLockManger

func NewGlobalLockManger(db *dynamodb.DynamoDB, table, lockName, owner string) *globalLockManager

Types

type LockManager

type LockManager interface {
	Lock(sqlite3vfs.LockType) error
	Unlock(sqlite3vfs.LockType) error
	Close() error
	Level() sqlite3vfs.LockType
	CheckReservedLock() (bool, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL