Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default = StdConfig("default").Build()
)
Functions ¶
Types ¶
type Config ¶
type Config struct { Prefix string `config:"prefix" desc:"locker key prefix. if empty, auto prefix with format: ${serviceName}.locker.${key}."` Config string `config:"config" desc:"redis config path. eg: 'default' means use 'redis.default' config"` // contains filtered or unexported fields }
func DefaultConfig ¶
func (*Config) Build ¶
func (c *Config) Build() locker.MutexLocker
Click to show internal directories.
Click to hide internal directories.