telegraf

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ByOrganizationIndexMapping is the mapping definition for fetching
	// telegrafs by organization ID.
	ByOrganizationIndexMapping = kv.NewIndexMapping(
		[]byte("telegrafv1"),
		[]byte("telegrafbyorgindexv1"),
		func(v []byte) ([]byte, error) {
			var telegraf influxdb.TelegrafConfig
			if err := json.Unmarshal(v, &telegraf); err != nil {
				return nil, err
			}

			id, _ := telegraf.OrgID.Encode()
			return id, nil
		},
	)
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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