Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock is the structure for containing the lock attributes.
func New ¶
New creates a new lock with the specified options. If no name is specified with the options, the default name is "golock.lock".
type Option ¶
type Option func(l *Lock)
Option is the type all options need to adhere to
func OptionSetInterval ¶
OptionSetInterval sets the interval to check (default: none)
func OptionSetTimeout ¶
OptionSetTimeout sets the timeout (default: none)
Click to show internal directories.
Click to hide internal directories.