Documentation ¶
Index ¶
- Variables
- func CheckPsmod()
- func DumpCurrentPsList(fout string)
- func DumpCurrentPsStat(fout string)
- func DumpsPsInfo()
- func EscOff(b []byte) []byte
- func GetPsListFile(fin string)
- func GetPsmodVersion() string
- func IncLogLineCount()
- func Init(vv string)
- func InitPaths()
- func MyChkError(err error, mesg string, ExitFlag int)
- func MyJSONChkError(err error, mesg string, ExitFlag int)
- func MyOkCheck(ok bool, mesg string, ExitFlag int)
- func ProcessLogCmd(pp string) string
- func PsCheckAndReturnTag(PsItem string, mesg string) string
- func SetupCloseHandler()
- type MyError
- type Pair
- type PairList
- type PsListType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnablePsFlag = 0 Get_ps_from_file_flag = 1 // from ps_base_rule.json (file) or rules.go MaxPsCount = 8000 PsCount = make(map[string]int) PsByteCount = make(map[string]int) PsByteSqCount = make(map[string]int) PsExlog = make(map[string]string) PsListAll PsListType Ps2Pnode = make(map[string]string) LogLineCount = 0 MaxLogLineCount = 50000 StopCh = make(chan int) PsmodCmd string = "" ApicactlVersion string = "<un-tracked>" )
Functions ¶
func CheckPsmod ¶
func CheckPsmod()
func DumpCurrentPsList ¶
func DumpCurrentPsList(fout string)
DumpCurrentPsList Open JSON and read base rules
func DumpCurrentPsStat ¶
func DumpCurrentPsStat(fout string)
func DumpsPsInfo ¶
func DumpsPsInfo()
func GetPsmodVersion ¶
func GetPsmodVersion() string
func IncLogLineCount ¶
func IncLogLineCount()
func MyChkError ¶
MyChkError check error and exit
func MyJSONChkError ¶
MyJSONChkError check error and exit, not working
func ProcessLogCmd ¶
func PsCheckAndReturnTag ¶
PsCheckAndReturnTag takes a LogPs returns pnode tag. if PsItem is not in the list, create new entry and update list
func SetupCloseHandler ¶
func SetupCloseHandler()
Types ¶
Click to show internal directories.
Click to hide internal directories.