utils

package
v0.0.0-...-447add3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecutorPath

func GetExecutorPath() string

func GetRedisConfig

func GetRedisConfig(addr string, configName string) (string, error)

func GetRedisStat

func GetRedisStat(addr string) (map[string]string, error)

func GetZkLock

func GetZkLock(zkConn zkhelper.Conn, productName string) zkhelper.ZLocker

func InitConfig

func InitConfig() (*cfg.Cfg, error)

func InitConfigFromFile

func InitConfigFromFile(filename string) (*cfg.Cfg, error)

func SlaveNoOne

func SlaveNoOne(addr string) error

func SlaveOf

func SlaveOf(slave, master string) error

func SlotsInfo

func SlotsInfo(addr string, fromSlot, toSlot int) (map[int]int, error)

get redis's slot size

Types

type Strings

type Strings []string

func (Strings) Eq

func (s1 Strings) Eq(s2 []string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL