Documentation ¶
Index ¶
- Variables
- func AppendIfMissing(slice []string, s string) []string
- func Distinct(ss []string) (distincted []string)
- func GenWorkers(num int) chan<- func()
- func GetDefaultLogDir() string
- func NewCustomLogger(c config.ServerInfo) *logrus.Entry
- func PrependProxyEnv(cmd string) string
- func ProxyEnv() string
- func Truncate(str string, length int) string
- func URLPathJoin(baseURL string, paths ...string) (string, error)
- func URLPathParamJoin(baseURL string, paths []string, params map[string]string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *logrus.Entry
Log for localhsot
Functions ¶
func AppendIfMissing ¶
AppendIfMissing append to the slice if missing
func GenWorkers ¶
func GenWorkers(num int) chan<- func()
GenWorkers generates goroutine http://qiita.com/na-o-ys/items/65373132b1c5bc973cca
func GetDefaultLogDir ¶ added in v0.3.0
func GetDefaultLogDir() string
GetDefaultLogDir returns default log directory
func NewCustomLogger ¶
func NewCustomLogger(c config.ServerInfo) *logrus.Entry
NewCustomLogger creates logrus
func PrependProxyEnv ¶
PrependProxyEnv prepends proxy environment variable
func URLPathJoin ¶
URLPathJoin make URL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.