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 ¶
GetFetcher gets an initialized fetcher plugin.
Click to show internal directories.
Click to hide internal directories.