locksmith

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MetricsLockingTime = "LockingTime"

Variables

View Source
var FlockSyscall = syscall.Flock

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	// contains filtered or unexported fields
}

func NewFileSystem

func NewFileSystem(storePath string, metricsEmitter groot.MetricsEmitter) *FileSystem

func (*FileSystem) Lock

func (l *FileSystem) Lock(key string) (*os.File, error)

func (*FileSystem) Unlock

func (l *FileSystem) Unlock(lockFile *os.File) error

type Null added in v0.17.1

type Null struct {
}

func (*Null) Lock added in v0.17.1

func (l *Null) Lock(key string) (*os.File, error)

func (*Null) Unlock added in v0.17.1

func (l *Null) Unlock(lockFile *os.File) error

Jump to

Keyboard shortcuts

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