exporter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBatchSize    = 200
	DefaultBatchTime    = 30 * time.Second
	DefaultRetryCount   = 3
	DefaultRetryBackoff = 300 * time.Millisecond
)

Variables

This section is empty.

Functions

func WithBatchSize

func WithBatchSize(n int) func(*Options)

func WithBatchTime

func WithBatchTime(t time.Duration) func(*Options)

func WithRetryPolicy

func WithRetryPolicy(count int, backoff time.Duration) func(*Options)

func WithTLS

func WithTLS(cfg *tls.Config) func(*Options)

Types

type Exporter

type Exporter interface {
	Export(event *pbflow.FlowEvent) error
}

type FlowGrpcClient

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

func NewFlowGrpcClient

func NewFlowGrpcClient(serverURL string, optFns ...func(*Options)) *FlowGrpcClient

func (*FlowGrpcClient) Export

func (c *FlowGrpcClient) Export(event *pbflow.FlowEvent) error

func (*FlowGrpcClient) Start

func (c *FlowGrpcClient) Start() error

func (*FlowGrpcClient) Stop

func (c *FlowGrpcClient) Stop() error

type Options

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

type StdoutExporter

type StdoutExporter struct{}

func NewStdoutExporter

func NewStdoutExporter() *StdoutExporter

func (*StdoutExporter) Export

func (s *StdoutExporter) Export(event *pbflow.FlowEvent) error

Jump to

Keyboard shortcuts

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