Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PARSER_MAX_THREADS = 16
Functions ¶
func NewParserTaskFromParser ¶
Types ¶
type Parser ¶
type Parser interface { // GetParserName Returns it's own parser name. It must be unique by each instances. GetParserName() string // Parse a log. Return an error to decide skip to parse the log and delegate later parsers. Parse(ctx context.Context, l *log.LogEntity, cs *history.ChangeSet, builder *history.Builder, variables *task.VariableSet) error // Description returns comprehensive description of the parser. // Parser tasks are registered as a `feature task` and the description is shown on the frontend. Description() string // LogTask returns the task Id generating []*log.LogEntity LogTask() string // Dependencies returns the list of task Ids excluding the log task Dependencies() []string // Grouper returns LogGrouper that groups logs into multiple sets. These sets are sorted individually and parsed in parallel, then merged later. Grouper() grouper.LogGrouper }
Parser is common interfaces across all of log parsers in KHI
Click to show internal directories.
Click to hide internal directories.