extractor

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 22

Documentation

Overview

Package extractor provides high-level constructs to easily build plugins with field extraction capability.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(p Plugin)

Register registers the field extraction capability in the framework for the given Plugin.

This function should be called from the provided plugins.FactoryFunc implementation. See the parent package for more detail. This function is idempotent.

Types

type Plugin

type Plugin interface {
	plugins.Plugin
	sdk.Extractor
	sdk.ExtractRequests
	//
	// Fields return the list of extractor fields exported by this plugin.
	Fields() []sdk.FieldEntry
}

Plugin is an interface representing a plugin with field extraction capability.

Jump to

Keyboard shortcuts

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