Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulAPIWrapper ¶
type ConsulCombinationLock ¶
type ConsulCombinationLock struct { ConsulLock ConsulLock LocalLock LocalLock }
func (ConsulCombinationLock) Lock ¶
func (lock ConsulCombinationLock) Lock() error
func (ConsulCombinationLock) Unlock ¶
func (lock ConsulCombinationLock) Unlock() error
type ConsulCombinationLockClient ¶
type ConsulCombinationLockClient struct { ConsulClient *ConsulLockClient LocalClient *LocalLockClient }
func NewConsulCombinationLockClient ¶
func NewConsulCombinationLockClient(consulAddress, consulBaseFolder string, consulLockOptions *consulapi.LockOptions) (*ConsulCombinationLockClient, error)
type ConsulLock ¶
func (ConsulLock) Lock ¶
func (lock ConsulLock) Lock() error
func (ConsulLock) Unlock ¶
func (lock ConsulLock) Unlock() error
type ConsulLockClient ¶
type ConsulLockClient struct { Client *consulapi.Client LockOptions *consulapi.LockOptions BaseFolder string }
func NewConsulLockClient ¶
func NewConsulLockClient(address, baseFolder string, lockOptions *consulapi.LockOptions) (ConsulLockClient, error)
type LocalLock ¶
type LocalLock struct { Client *LocalLockClient Key string }
type LocalLockClient ¶
The LocalLock is an implementation of the LockClient_i/Lock_i structure That is designed to be used in a non-distributed environment It uses a cache of Mutexes which are locked and unlocked according to a specified key
func NewLocalLockClient ¶
func NewLocalLockClient() *LocalLockClient
type LockClient_i ¶
Click to show internal directories.
Click to hide internal directories.