Documentation ¶
Index ¶
- Constants
- func ExecDir() string
- func HomeDir() string
- func Hostname() string
- func HttpTalk(cli *http.Client, req *http.Request) ([]byte, error)
- func IP2Long(ipstr string) uint32
- func Long2IP(ipLong uint32) string
- func NewTimeoutClient(connectTimeout, readWriteTimeout time.Duration) *http.Client
- func NewTimeoutClientWithProxy(connectTimeout, readWriteTimeout time.Duration, ...) *http.Client
- func SetLogger(l *Logger)
- func TimeoutDialer(cTimeout time.Duration, rwTimeout time.Duration) func(net, addr string) (c net.Conn, err error)
- func ToLower(c byte) byte
- func ToUpper(c byte) byte
- type Logger
- func (l *Logger) Debug(content ...interface{})
- func (l *Logger) Debugf(format string, content ...interface{})
- func (l *Logger) Error(content ...interface{})
- func (l *Logger) Errorf(format string, content ...interface{})
- func (l *Logger) Info(content ...interface{})
- func (l *Logger) Infof(format string, content ...interface{})
- func (l *Logger) Notice(content ...interface{})
- func (l *Logger) Noticef(format string, content ...interface{})
- func (l *Logger) Warning(content ...interface{})
- func (l *Logger) Warningf(format string, content ...interface{})
Constants ¶
View Source
const ( FilenameSuffixInDay = "20060102" FilenameSuffixInSecond = "20060102150405" StandardLogPrefix = "2006/01/02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func NewTimeoutClient ¶
func TimeoutDialer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.