xfileLock

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TFileLocker

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

func New

func New(file string) *TFileLocker

func (*TFileLocker) IsLocked

func (l *TFileLocker) IsLocked() bool

func (*TFileLocker) IsRLocked

func (l *TFileLocker) IsRLocked() bool

func (*TFileLocker) Lock

func (l *TFileLocker) Lock() (err error)

func (*TFileLocker) Path

func (l *TFileLocker) Path() string

func (*TFileLocker) RLock

func (l *TFileLocker) RLock() (err error)

func (*TFileLocker) RUnlock

func (l *TFileLocker) RUnlock() (err error)

func (*TFileLocker) TryLock

func (l *TFileLocker) TryLock() bool

func (*TFileLocker) TryRLock

func (l *TFileLocker) TryRLock() bool

func (*TFileLocker) Unlock

func (l *TFileLocker) Unlock() (err error)

Jump to

Keyboard shortcuts

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