Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLock ¶
type FileLock struct {
// contains filtered or unexported fields
}
FileLock wraps os.File to be used as a lock using flock
func NewFileLock ¶
NewFileLock opens file/dir at path and returns unlocked FileLock object
type Store ¶
type Store struct { FileLock // contains filtered or unexported fields }
func (*Store) LastReservedIP ¶
LastReservedIP returns the last reserved IP if exists
func (*Store) ReleaseByID ¶
N.B. This function eats errors to be tolerant and release as much as possible
Click to show internal directories.
Click to hide internal directories.