metadata

package
v0.173.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata map[string][]interface{}

Metadata is made as a standalone package to avoid import cycle: influxd -> flux -> flux/interpreter -> flux/execute -> flux

func (Metadata) Add

func (md Metadata) Add(key string, value interface{})

func (Metadata) AddAll

func (md Metadata) AddAll(other Metadata)

func (Metadata) Del

func (md Metadata) Del(key string)

func (Metadata) Get added in v0.149.0

func (md Metadata) Get(key string) (interface{}, error)

func (Metadata) GetAll added in v0.149.0

func (md Metadata) GetAll(key string) []interface{}

func (Metadata) Range

func (md Metadata) Range(fn func(key string, value interface{}) bool)

Range will iterate over the Metadata. It will invoke the function for each key/value pair. If there are multiple values for a single key, then this will be called with the same key once for each value.

Jump to

Keyboard shortcuts

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