flowlabel

package
v0.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(dst, src FlowLabels)

Merge combines two flow labels maps into one. Overwrites overlapping keys with values from src.

Types

type FlowLabelValue

type FlowLabelValue struct {
	Value     string
	Telemetry bool
}

FlowLabelValue is a value of a flow label with additional metadata.

type FlowLabels

type FlowLabels map[string]FlowLabelValue

FlowLabels is a map from flow labels to their values.

func NewFromPlainMap

func NewFromPlainMap(input map[string]string) FlowLabels

NewFromPlainMap returns flow labels from normal map[string]string. Telemetry flag is set to true for all flow labels.

func (FlowLabels) ToPlainMap

func (fl FlowLabels) ToPlainMap() map[string]string

ToPlainMap returns flow labels as normal map[string]string.

Jump to

Keyboard shortcuts

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