Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToLock = errors.New("加锁失败") ErrNotLock = errors.New("没有持有锁") )
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
func (*Lock) AutoRefresh ¶
AutoRefresh 自动续约 interval 间隔多长时间续约 timeOut 超时时间
Click to show internal directories.
Click to hide internal directories.