encode

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodeProm

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

func (*EncodeProm) Cleanup

func (e *EncodeProm) Cleanup(cleanupFunc interface{})

callback function from lru cleanup

func (*EncodeProm) Encode

func (e *EncodeProm) Encode(metricRecord config.GenericMap)

Encode encodes a metric before being stored

type Encoder

type Encoder interface {
	Encode(in config.GenericMap)
}

func NewEncodeKafka

func NewEncodeKafka(opMetrics *operational.Metrics, params config.StageParam) (Encoder, error)

NewEncodeKafka create a new writer to kafka

func NewEncodeNone

func NewEncodeNone() (Encoder, error)

NewEncodeNone create a new encode

func NewEncodeProm

func NewEncodeProm(opMetrics *operational.Metrics, params config.StageParam) (Encoder, error)

func NewEncodeS3 added in v0.1.5

func NewEncodeS3(opMetrics *operational.Metrics, params config.StageParam) (Encoder, error)

NewEncodeS3 creates a new writer to S3

Jump to

Keyboard shortcuts

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