api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fallbacker

type Fallbacker interface {
	plugin.Plugin
	// FallBack returns nil when finishing a successful process and returns a new Fallbacker when failure.
	FallBack(batch event.BatchEvents, forward api.ForwardFunc) bool
}

Fallbacker is a plugin interface, that defines some fallback strategies.

func GetFallbacker

func GetFallbacker(config plugin.Config) Fallbacker

GetFallbacker gets an initialized client plugin.

Jump to

Keyboard shortcuts

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