Documentation
¶
Index ¶
- func CheckError(err error)
- func FileExists(f string) bool
- func GetBinPath() string
- func GetConnection(addr string) (*net.TCPConn, error)
- func GetFilelist(path string) (fileList []string)
- func GetHostname() string
- func GetIp() string
- func HandleQuitSignal(f func())
- func HandleSignal(f func(), sig ...os.Signal)
- func IpToUint32(ip string) uint32
- func ReadConfig(cfgFile string) map[string]map[string]string
- func StringTrimLast(s string) string
- func Unzip(data []byte) []byte
- type GlobalList
- type QuitFunc
- type QuitList
- type RotateWriter
- type WaitQuit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func GetFilelist ¶
func GetHostname ¶
func GetHostname() string
func HandleQuitSignal ¶
func HandleQuitSignal(f func())
func HandleSignal ¶
func IpToUint32 ¶
func StringTrimLast ¶
Types ¶
type GlobalList ¶
type GlobalList struct {
// contains filtered or unexported fields
}
func GlobalListInit ¶
func GlobalListInit() (globalList *GlobalList)
func (*GlobalList) PushBack ¶
func (gl *GlobalList) PushBack(v interface{})
func (*GlobalList) Remove ¶
func (gl *GlobalList) Remove() (e *list.Element)
func (*GlobalList) Setup ¶
func (gl *GlobalList) Setup()
type QuitList ¶
type QuitList struct {
// contains filtered or unexported fields
}
func NewQuitList ¶
func NewQuitList() *QuitList
func (*QuitList) HandleQuitSignal ¶
func (this *QuitList) HandleQuitSignal()
自带信号处理方法,需要在ExecQuit()执行前调用 也可用其他信号处理方法替代
type RotateWriter ¶
type RotateWriter struct {
// contains filtered or unexported fields
}
func NewRotateWriter ¶
func NewRotateWriter(outDir string) *RotateWriter
Click to show internal directories.
Click to hide internal directories.