Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLocker ¶
type FileLocker struct { LocksDir string // contains filtered or unexported fields }
func NewFileLocker ¶
func NewFileLocker(locksDir string) (*FileLocker, error)
func (*FileLocker) Acquire ¶
func (l *FileLocker) Acquire(lockName string, opts lockgate.AcquireOptions) (bool, lockgate.LockHandle, error)
func (*FileLocker) Release ¶
func (l *FileLocker) Release(lockHandle lockgate.LockHandle) error
Click to show internal directories.
Click to hide internal directories.