Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct { Lockfile string // contains filtered or unexported fields }
Lock prevents code to run at the same time by using a lockfile
func (*Lock) TryAcquire ¶
TryAcquire returns true if the lock was successfully set. It returns false if a lock already exists
Click to show internal directories.
Click to hide internal directories.