Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConsul ¶
func InitConsul(centerAddr string)
Types ¶
type ConsulLock ¶
type ConsulLock struct {
// contains filtered or unexported fields
}
func NewConsulLock ¶
func NewConsulLock(key string, expire int) (*ConsulLock, error)
func (*ConsulLock) Unlock ¶
func (l *ConsulLock) Unlock()
type RdsLuaLock ¶
type RdsLuaLock struct {
// contains filtered or unexported fields
}
func NewRdsLuaLock ¶
func NewRdsLuaLock(dbKey, key string, expire int) (*RdsLuaLock, error)
func (*RdsLuaLock) Unlock ¶
func (l *RdsLuaLock) Unlock(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.