otelmw

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithProcessor

func WithProcessor(pluginName, recipeName string) func(plugins.Processor) plugins.Processor

func WithSink

func WithSink(pluginName, recipeName string) func(plugins.Syncer) plugins.Syncer

Types

type Processor

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

func (*Processor) Info

func (mw *Processor) Info() plugins.Info

func (*Processor) Init

func (mw *Processor) Init(ctx context.Context, cfg plugins.Config) error

func (*Processor) Process

func (mw *Processor) Process(ctx context.Context, src models.Record) (dst models.Record, err error)

func (*Processor) Validate

func (mw *Processor) Validate(cfg plugins.Config) error

type Sinks

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

func (*Sinks) Close

func (mw *Sinks) Close() error

func (*Sinks) Info

func (mw *Sinks) Info() plugins.Info

func (*Sinks) Init

func (mw *Sinks) Init(ctx context.Context, cfg plugins.Config) error

func (*Sinks) Sink

func (mw *Sinks) Sink(ctx context.Context, batch []models.Record) (err error)

func (*Sinks) Validate

func (mw *Sinks) Validate(cfg plugins.Config) error

Jump to

Keyboard shortcuts

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