Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForwardFunc ¶
type ForwardFunc func(batch event.BatchEvents) error
ForwardFunc represent the Forward() in Forwarder
type Forwarder ¶
type Forwarder interface { plugin.Plugin // Prepare do some preparation works, such as create a stub in gRPC and create a producer in Kafka. Prepare(connection interface{}) error // Forward the batch events to the external services, such as Kafka MQ and SkyWalking OAP cluster. Forward(batch event.BatchEvents) error // SyncForward the single event to the external service with sync forward SyncForward(event *v1.SniffData) (*v1.SniffData, error) // ForwardType returns the supported event type. ForwardType() v1.SniffType // SupportedSyncInvoke return is support SyncForward SupportedSyncInvoke() bool }
Forwarder is a plugin interface, that defines new forwarders.
func GetForwarder ¶
GetForwarder an initialized filter plugin.
Click to show internal directories.
Click to hide internal directories.