Documentation ¶
Index ¶
- Constants
- func CheckParameters(parameters map[string]interface{}, name, typ string, reg *regexp.Regexp, ...) error
- func PrintLog(level, format string, line LogLine)
- func RemoveAnsiCharacters(str string) string
- func RemoveSpecialCharacters(input string) string
- func SetFields(structure interface{}, fields map[string]interface{}) interface{}
- type LogLine
Constants ¶
View Source
const ( BoolStr string = "bool" FloatStr string = "float" Float64Str string = "float64" StringStr string = "string" IntStr string = "int" Int64Str string = "int64" SliceInterfaceStr string = "[]interface {}" MapStringStr string = "map[string]string" MapIntStr string = "map[string]int" MapInterfaceStr string = "map[string]interface {}" )
Variables ¶
This section is empty.
Functions ¶
func CheckParameters ¶
func RemoveAnsiCharacters ¶
func RemoveSpecialCharacters ¶
Types ¶
type LogLine ¶
type LogLine struct { Objects map[string]string `json:"objects,omitempty"` TraceID string `json:"trace_id,omitempty"` Rule string `json:"rule,omitempty"` Event string `json:"event,omitempty"` Message string `json:"message,omitempty"` Priority string `json:"priority,omitempty"` Source string `json:"source,omitempty"` Result string `json:"result,omitempty"` Notifier string `json:"notifier,omitempty"` Output string `json:"output,omitempty"` Actionner string `json:"actionner,omitempty"` Action string `json:"action,omitempty"` ActionCategory string `json:"action_category,omitempty"` Error string `json:"error,omitempty"` Status string `json:"status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.