Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type FileLocker ¶
type FileLocker struct { FileName string Wait time.Duration // contains filtered or unexported fields }
func NewFileLocker ¶
func NewFileLocker(fname string, wait time.Duration) *FileLocker
func (*FileLocker) Lock ¶
func (lock *FileLocker) Lock() error
func (*FileLocker) Unlock ¶
func (lock *FileLocker) Unlock()
Click to show internal directories.
Click to hide internal directories.