customparser

package
v1.15.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package customparser provides a log parser that uses reflection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	LogType      string
	EventSchema  reflect.Type
	PreProcessor preprocessors.Interface
	API          jsoniter.API
	Builder      pantherlog.ResultBuilder
	Validate     func(interface{}) error
}

Factory implements parsers.Factory interface using reflection to parse json log entries to a single log event.

func (*Factory) NewParser

func (f *Factory) NewParser(_ interface{}) (pantherlog.LogParser, error)

NewParser implements parsers.Factory interface. Since the parser accepts no parameters we use _ as the params argument name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL