Documentation ¶
Index ¶
Constants ¶
View Source
const ( TpMethod = "TP" HeartbeatMethod = "Heartbeat" FunctionError = "FunctionError" )
View Source
const ( FunctionTpSufixx = "tp.log" SystemAliveSufixx = "alive.log" BusinessAlarmSufixx = "business.log" LogFileOpt = os.O_RDWR | os.O_CREATE | os.O_APPEND ChSize = 102400 BusinessAlarmType = "BusinessAlarm" SystemAliveType = "SystemAlive" FunctionTpType = "FunctionTp" HostNameFile = "/proc/sys/kernel/hostname" MaxLogSize = 1024 * 1024 * 10 )
Variables ¶
View Source
var ( HostName string LogTimeForMat = "20060102150405000" AlarmPool = &sync.Pool{New: func() interface{} { return new(BusinessAlarm) }} TpObjectPool = &sync.Pool{New: func() interface{} { return new(TpObject) }} SystemAlivePool = &sync.Pool{New: func() interface{} { return new(SystemAlive) }} FunctionTpPool = &sync.Pool{New: func() interface{} { return new(FunctionTp) }} )
Functions ¶
func GetLocalIpAddr ¶
Types ¶
type BusinessAlarm ¶
type FunctionTp ¶
type SystemAlive ¶
Click to show internal directories.
Click to hide internal directories.