Documentation ¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func DiscoverServices() map[int]Service
- func FromJSON(data []byte, v interface{}) (err error)
- func GetDefaultInterface() string
- func GetFirstInterface() (name string, ip string)
- func GetHostIp() string
- func IP2int(ip string) uint32
- func MustParseInt(s string) int
- func ShowAllInterfaces()
- func ToIndentJSON(v interface{}) byteArray
- func ToJSON(v interface{}) byteArray
- type ByLength
- type Service
Constants ¶
View Source
const ( Service_Type_Redis = 0 Service_Type_Memcache = 1 Service_Type_Twemproxy = 2 Service_Type_Mysql = 3 Service_Type_Mongodb = 4 )
Variables ¶
This section is empty.
Functions ¶
func DiscoverServices ¶
func GetDefaultInterface ¶
func GetDefaultInterface() string
func GetFirstInterface ¶
func MustParseInt ¶
func ShowAllInterfaces ¶
func ShowAllInterfaces()
func ToIndentJSON ¶
func ToIndentJSON(v interface{}) byteArray
Types ¶
Click to show internal directories.
Click to hide internal directories.