Documentation ¶
Index ¶
- func GetRedisConfig(addr string, configName string) (string, error)
- func GetRedisStat(addr string) (map[string]string, error)
- func GetZkLock(zkConn zkhelper.Conn, productName string) zkhelper.ZLocker
- func InitConfig() (*cfg.Cfg, error)
- func InitConfigFromFile(filename string) (*cfg.Cfg, error)
- func SlaveNoOne(addr string) error
- func SlotsInfo(addr string, fromSlot, toSlot int) (map[int]int, error)
- type Strings
- type Token
- type TokenLimiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func SlaveNoOne ¶
Types ¶
type TokenLimiter ¶
type TokenLimiter struct {
// contains filtered or unexported fields
}
func NewTokenLimiter ¶
func NewTokenLimiter(count int) *TokenLimiter
func (*TokenLimiter) Get ¶
func (tl *TokenLimiter) Get() *Token
func (*TokenLimiter) Put ¶
func (tl *TokenLimiter) Put(tk *Token)
Click to show internal directories.
Click to hide internal directories.