exporter

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExportedBytesTotalWriter added in v1.1.0

func NewExportedBytesTotalWriter(w io.Writer) io.Writer

func RegisterMetrics added in v1.2.0

func RegisterMetrics(group metrics.Group)

Types

type ExportEncoder

type ExportEncoder interface {
	Encode(v interface{}) error
}

type Exporter

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

func NewExporter

func NewExporter(
	ctx context.Context,
	request *tetragon.GetEventsRequest,
	server *server.Server,
	encoder ExportEncoder,
	closer io.Closer,
	rateLimiter *ratelimit.RateLimiter,
) *Exporter

func (*Exporter) Context

func (e *Exporter) Context() context.Context

func (*Exporter) RecvMsg

func (e *Exporter) RecvMsg(_ interface{}) error

func (*Exporter) Send

func (e *Exporter) Send(event *tetragon.GetEventsResponse) error

func (*Exporter) SendHeader

func (e *Exporter) SendHeader(metadata.MD) error

func (*Exporter) SendMsg

func (e *Exporter) SendMsg(_ interface{}) error

func (*Exporter) SetHeader

func (e *Exporter) SetHeader(metadata.MD) error

func (*Exporter) SetTrailer

func (e *Exporter) SetTrailer(metadata.MD)

func (*Exporter) Start

func (e *Exporter) Start() error

Jump to

Keyboard shortcuts

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