Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SchemeType_name = map[SchemeType]string{ SchemeTypeUnknown: "unknown", SchemeTypeEtcd: "etcd", SchemeTypeDynamoDB: "dynamodb", } SchemeType_value = map[string]SchemeType{ "unknown": SchemeTypeUnknown, "etcd": SchemeTypeEtcd, "dynamo": SchemeTypeDynamoDB, } )
Enum value maps for SchemeType.
Functions ¶
This section is empty.
Types ¶
type DynamoDBLockManager ¶ added in v0.3.0
type DynamoDBLockManager struct {
// contains filtered or unexported fields
}
func NewDynamoDBLockManagerWithUri ¶ added in v0.3.0
func NewDynamoDBLockManagerWithUri(uri string, logger *zap.Logger) (*DynamoDBLockManager, error)
func (*DynamoDBLockManager) Close ¶ added in v0.3.0
func (m *DynamoDBLockManager) Close() error
func (*DynamoDBLockManager) Lock ¶ added in v0.3.0
func (m *DynamoDBLockManager) Lock() (int64, error)
func (*DynamoDBLockManager) Unlock ¶ added in v0.3.0
func (m *DynamoDBLockManager) Unlock() error
type EtcdLockManager ¶
type EtcdLockManager struct {
// contains filtered or unexported fields
}
func NewEtcdLockManagerWithUri ¶
func NewEtcdLockManagerWithUri(uri string, logger *zap.Logger) (*EtcdLockManager, error)
func (*EtcdLockManager) Close ¶
func (m *EtcdLockManager) Close() error
func (*EtcdLockManager) Lock ¶
func (m *EtcdLockManager) Lock() (int64, error)
func (*EtcdLockManager) Unlock ¶
func (m *EtcdLockManager) Unlock() error
type LockManager ¶
func NewLockManagerWithUri ¶
func NewLockManagerWithUri(uri string, logger *zap.Logger) (LockManager, error)
type SchemeType ¶
type SchemeType int
const ( SchemeTypeUnknown SchemeType = iota SchemeTypeEtcd SchemeTypeDynamoDB )
Click to show internal directories.
Click to hide internal directories.