Documentation ¶
Index ¶
- Constants
- func Configure(cfg Map)
- func Go()
- func Lock(args ...Any) error
- func LockTo(conn string, args ...Any) error
- func Locked(args ...Any) bool
- func Ready()
- func Register(name string, value Any, overrides ...bool)
- func Unlock(args ...Any) error
- func UnlockFrom(conn string, args ...Any) error
- type Config
- type Configs
- type Connect
- type Driver
- type Instance
- type Module
- func (this *Module) Config(name string, config Config, override bool)
- func (this *Module) Configs(config Configs, override bool)
- func (this *Module) Configure(global Map)
- func (this *Module) Connect()
- func (module *Module) Driver(name string, driver Driver, override bool)
- func (this *Module) Initialize()
- func (this *Module) Launch()
- func (this *Module) Lock(key string, expiries ...time.Duration) error
- func (this *Module) LockTo(conn string, key string, expiries ...time.Duration) error
- func (this *Module) Register(name string, value Any, override bool)
- func (this *Module) Terminate()
- func (this *Module) Unlock(key string) error
- func (this *Module) UnlockFrom(locate string, key string) error
Constants ¶
View Source
const ( NAME = "MUTEX" DEFAULT = "default" )
Variables ¶
This section is empty.
Functions ¶
func UnlockFrom ¶
Types ¶
type Connect ¶
type Connect interface { //打开、关闭 Open() error Close() error Lock(key string, expiry time.Duration) error Unlock(key string) error }
Connect 会话连接
Click to show internal directories.
Click to hide internal directories.