shipper

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTLPShipperOption

type OTLPShipperOption func(*otlpShipperOptions)

func WithBatchSize

func WithBatchSize(batchSize int) OTLPShipperOption

func WithComponent

func WithComponent(component string) OTLPShipperOption

func WithLogType

func WithLogType(logType string) OTLPShipperOption

func WithWorkers

func WithWorkers(workers int) OTLPShipperOption

type Shipper

type Shipper interface {
	// Publish will publish each token in a scanner to a destination
	// any batch processing should be handled by the shipper
	Publish(context.Context, *bufio.Scanner) error
}

Shipper is a convenient interface for publishing data to a destination

Jump to

Keyboard shortcuts

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