Documentation ¶
Index ¶
- func ContainsGBK(str string) bool
- func FireReload()
- func FireTerminate()
- func GenRandomString(seed string) string
- func GobDecode(buf []byte, val interface{}) error
- func GobEncode(val interface{}) ([]byte, error)
- func Hash(str string) uint64
- func IsEmptyStr(val string) bool
- func MD5(str string) string
- func MD5Bytes(buf []byte) string
- func OnReloadEvent(fn SigFunc)
- func OnShutdownEvent(fn SigFunc)
- func SafeReplaceName(name string) string
- func SimpleHash(str string) uint64
- func StrArrayContains(arr []string, item string) bool
- func StrArrayEquals(arr1, arr2 []string) bool
- func SubStr(str string, begin, length int) string
- func TrapSignals()
- func ZipDir(dir, zipFile string) error
- func ZlibCompress(buf []byte) ([]byte, error)
- func ZlibUncompress(buf []byte) ([]byte, error)
- type HashRing
- type SigFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FireReload ¶
func FireReload()
func FireTerminate ¶
func FireTerminate()
func GenRandomString ¶
func IsEmptyStr ¶
IsEmptyStr returns true if val == nil or val == "" or val == " "
func OnReloadEvent ¶
func OnReloadEvent(fn SigFunc)
func OnShutdownEvent ¶
func OnShutdownEvent(fn SigFunc)
func SafeReplaceName ¶
func SimpleHash ¶
func StrArrayContains ¶
StrArrayContains returns true if array contains the item
func StrArrayEquals ¶
func TrapSignals ¶
func TrapSignals()
Types ¶
Click to show internal directories.
Click to hide internal directories.