exporters

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PUT_BATCH_SIZE               = 1024
	MAX_EXPORTERS_PER_DATASOURCE = 8
)

Variables

This section is empty.

Functions

func GetTagFilters

func GetTagFilters(field string, tagFilters []config.TagFilter) []config.TagFilter

func IsExportField

func IsExportField(tag *config.StructTags, exportFieldCategoryBits uint64, exportFieldNames []string) bool

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{})
}

type Exporters

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

func NewExporters

func NewExporters(cfg *config.Config) *Exporters

func (*Exporters) Close

func (es *Exporters) Close() error

func (*Exporters) Flush

func (es *Exporters) Flush(dataSourceId, decoderIndex int)

func (*Exporters) IsExportItem

func (es *Exporters) IsExportItem(item common.ExportItem, dataSourceId uint32, exporterCfg *config.ExporterCfg) bool

func (*Exporters) Put

func (es *Exporters) Put(dataSourceId uint32, decoderIndex int, item common.ExportItem)

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