semantics

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Semantic

type Semantic int
const (
	Undefined Semantic = iota

	Default

	Quantity

	// TODO(zoomoid): we want to add labels for fields that are declared as either totalCounters or deltaCounters
	// such that the ingestor can take all those fields and insert them into InfluxDB as those are properly
	// "measureable"
	TotalCounter
	DeltaCounter

	Identifier

	Flags

	List

	SNMPCounter

	SNMPGauge
)

TODO(zoomoid): this has ambiguous behaviour for the case of explicit "Undefined" and implicit undefined (i.e. not part of the switch), where "" and "unassigned" are two different literals

func FromNumber

func FromNumber(i uint8) Semantic

func Parse

func Parse(semantic string) Semantic

func SupportedSemantics

func SupportedSemantics() []Semantic

func (Semantic) MarshalText

func (s Semantic) MarshalText() ([]byte, error)

func (Semantic) String

func (s Semantic) String() string

TODO(zoomoid): this has ambiguous behaviour for the case of explicit "Undefined" and implicit undefined (i.e. not part of the switch), where "" and "unassigned" are two different literals

func (*Semantic) UnmarshalText

func (s *Semantic) UnmarshalText(in []byte) error

Jump to

Keyboard shortcuts

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