sender

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSender

func NewSender(cfg *api.SenderConfig) api.Sender

NewSender crate a Sender.

Types

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender is the forward module in Satellite.

func (*Sender) Boot

func (s *Sender) Boot(ctx context.Context)

Boot fetches the downstream partitioned input data and forward to external services, such as Kafka and OAP receiver.

func (*Sender) InputDataChannel

func (s *Sender) InputDataChannel(partition int) chan<- *event.OutputEventContext

func (*Sender) Prepare

func (s *Sender) Prepare() error

Prepare register the client status listener to the client manager and open partitioned input channel.

func (*Sender) SetGatherer added in v0.2.0

func (s *Sender) SetGatherer(m module.Module) error

func (*Sender) Shutdown

func (s *Sender) Shutdown()

Shutdown closes the channels and tries to force forward the events in the buffer.

func (*Sender) SyncInvoke added in v0.2.0

func (s *Sender) SyncInvoke(d *v1.SniffData) (*v1.SniffData, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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