升级easylock的入参选项

This commit is contained in:
2021-04-01 16:28:23 +08:00
parent 08a8a8015c
commit 7553846941
4 changed files with 76 additions and 16 deletions

View File

@ -7,9 +7,18 @@
// Date : 2021-02-24 6:29 下午
package easylock
// EasyLock ...
//
// Author : go_developer@163.com<张德满>
//
// Date : 4:18 下午 2021/4/1
type EasyLock interface {
Lock(flag string) error
Unlock(flag string) error
RLock(flag string) error
RUnlock(flag string) error
// Lock ...
Lock(optionFuncList ...OptionFunc) error
// Unlock ...
Unlock(optionFuncList ...OptionFunc) error
// RLock ...
RLock(optionFuncList ...OptionFunc) error
// RUnlock ...
RUnlock(optionFuncList ...OptionFunc) error
}