api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterParserPlugins

func RegisterParserPlugins()

RegisterParserPlugins register the used parser plugins.

Types

type Parser

type Parser interface {
	plugin.Plugin

	// ParseBytes parse the byte buffer into events.
	ParseBytes(bytes []byte) (event.BatchEvents, error)

	// ParseStr parse the string into events.
	ParseStr(str string) (event.BatchEvents, error)
}

Parser is a plugin interface, that defines new Parsers for Collector plugin.

func GetParser

func GetParser(config plugin.Config) Parser

GetParser an initialized filter plugin.

Jump to

Keyboard shortcuts

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