exporters

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PUT_BATCH_SIZE = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter interface {
	// Starts an exporter worker
	Start()
	// Close an exporter worker
	Close()

	// Put sends data to the exporter worker. Worker could decide what to do next. e.g.:
	// - send it out synchronously.
	// - store it in a queue and handle it later.
	Put(items ...interface{})

	// IsExportData tell the decoder if data need to be sended to specific exporter.
	IsExportData(l *log_data.L7FlowLog) bool
}

type Exporters

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

func NewExporters

func NewExporters(flowlogCfg *config.Config) *Exporters

func (*Exporters) Close

func (es *Exporters) Close()

func (*Exporters) Flush

func (es *Exporters) Flush(decoderIndex int)

func (*Exporters) Put

func (es *Exporters) Put(l *log_data.L7FlowLog, decoderIndex int)

parallel put

func (*Exporters) Start

func (es *Exporters) Start()

type ExportersCache

type ExportersCache [][]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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