package
Version:
v0.0.0-...-c8a8185
Opens a new window with list of versions in this module.
Published: Oct 5, 2021
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewLock creates a new lock maanger
type Config struct {
Key string `json:"key" yaml:"key"`
Consul *consul.Config `json:"consul" yaml:"consul"`
}
Connect connects to consul
Disconnect disconnects from consul
HasLock lock is held by this node
Unlock unlocks a lock by id
Source Files
¶
Click to show internal directories.
Click to hide internal directories.