encoding

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoding

type Encoding byte

Encoding defines which encoding we are using.

const (
	// PrometheusXorChunk is a wrapper around Prometheus XOR-encoded chunk.
	// 4 is the magic value for backwards-compatibility with previous iota-based constants.
	PrometheusXorChunk Encoding = 4
	// PrometheusHistogramChunk is a wrapper around Prometheus histogram chunk.
	// 5 is the magic value for backwards-compatibility with previous iota-based constants.
	PrometheusHistogramChunk Encoding = 5
	// PrometheusFloatHistogramChunk is a wrapper around Prometheus float histogram chunk.
	// 6 is the magic value for backwards-compatibility with previous iota-based constants.
	PrometheusFloatHistogramChunk Encoding = 6
)

func FromPromChunkEncoding added in v1.18.0

func FromPromChunkEncoding(enc chunkenc.Encoding) (Encoding, error)

func (Encoding) ChunkValueType added in v1.18.0

func (e Encoding) ChunkValueType() chunkenc.ValueType

func (Encoding) PromChunkEncoding added in v1.18.0

func (e Encoding) PromChunkEncoding() chunkenc.Encoding

func (Encoding) String

func (e Encoding) String() string

String implements flag.Value.

Jump to

Keyboard shortcuts

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