Documentation ¶
Index ¶
Constants ¶
View Source
const ( LockDefaultTimeout = time.Hour ReleaseLockRetryAmount = 3 ReleaseLockRetryInterval = time.Second * 10 )
Variables ¶
This section is empty.
Functions ¶
func AcquireLock ¶
timeout 0 means default time out
func LockAvailable ¶
func ReleaseLock ¶
func ReloadStorage ¶
Types ¶
type DummyError ¶
type DummyError struct {
// contains filtered or unexported fields
}
func (*DummyError) Error ¶
func (dummyError *DummyError) Error() string
type Storage ¶
func GetStorage ¶
func GetStorage() Storage
type StorageDummy ¶
type StorageDummy struct {
// contains filtered or unexported fields
}
func (*StorageDummy) LoadAllLock ¶
func (storageDummy *StorageDummy) LoadAllLock() ([]Lock, error)
func (*StorageDummy) ShouldCheck ¶
func (storageDummy *StorageDummy) ShouldCheck() bool
type StorageEtcd ¶
type StorageEtcd struct { }
func (*StorageEtcd) LoadAllLock ¶
func (storageEtcd *StorageEtcd) LoadAllLock() ([]Lock, error)
Click to show internal directories.
Click to hide internal directories.