Documentation
¶
Index ¶
- Constants
- func CheckFileExist(filepath string) (string, error)
- func EndpointsToStrings(endpoints map[string]Endpoint) []string
- func GetCmdDir() string
- func GetDataDir() string
- func GetLocalIP() (got string)
- func GetRootDir() string
- func IntranetIP() (ips []string, err error)
- func IsIntranet(ipStr string) bool
- func KRand(size int, kind int) []byte
- func SetCmdDir()
- func SetDataDir(d string)
- func SetRootDir()
- func TrimAddrs(addrs []string) []string
- type Endpoint
- type Event
- type EventStream
- type Port
- type Protocol
- type StringSlice
Constants ¶
View Source
const ( ProtocolHttp = Protocol("http") ProtocolUnix = Protocol("unix") )
View Source
const ( KC_RAND_KIND_NUM = 0 KC_RAND_KIND_LOWER = 1 KC_RAND_KIND_UPPER = 2 KC_RAND_KIND_ALL = 3 )
Variables ¶
This section is empty.
Functions ¶
func CheckFileExist ¶
func EndpointsToStrings ¶
func GetDataDir ¶
func GetDataDir() string
func GetRootDir ¶
func GetRootDir() string
func IsIntranet ¶
func SetDataDir ¶
func SetDataDir(d string)
func SetRootDir ¶
func SetRootDir()
Types ¶
type EventStream ¶
type StringSlice ¶
type StringSlice []string
func NewStringSlice ¶
func NewStringSlice(value string) StringSlice
func (StringSlice) String ¶
func (f StringSlice) String() string
func (StringSlice) Value ¶
func (f StringSlice) Value() []string
Click to show internal directories.
Click to hide internal directories.