Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockEtcd ¶ added in v1.0.47
type LockEtcd struct {
// contains filtered or unexported fields
}
func NewLockEtcd ¶ added in v1.0.47
func NewLockEtcd(etcdClient *clientv3.Client) *LockEtcd
func (*LockEtcd) LockForever ¶ added in v1.0.47
LockForever 永远上锁 key 锁名 val 锁内容
type LockRedis ¶ added in v1.0.47
type LockRedis struct {
// contains filtered or unexported fields
}
func NewLockRedis ¶ added in v1.0.47
func NewLockRedis(redisClient *redis.Client) *LockRedis
func (*LockRedis) LockForever ¶ added in v1.0.47
LockForever 永远上锁 key 锁名 val 锁内容
Click to show internal directories.
Click to hide internal directories.