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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	plugin.Plugin

	Prepare()
	// Fetch would fetch some APM data.
	Fetch(ctx context.Context)
	// Channel would be put a data when the receiver receives an APM data.
	Channel() <-chan *v1.SniffData
	// Shutdown shutdowns the fetcher
	Shutdown(context.Context) error
	// SupportForwarders should provider all forwarder support current receiver
	SupportForwarders() []forwarder.Forwarder
}

Fetcher is a plugin interface, that defines new fetchers.

func GetFetcher

func GetFetcher(config plugin.Config) Fetcher

GetFetcher gets an initialized fetcher plugin.

Jump to

Keyboard shortcuts

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