helpers

package
v0.0.0-...-25d8119 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port         int        `yaml:"port"`
	InfluxDB2    string     `yaml:"influxDB2"`
	Token        string     `yaml:"token"`
	Organization string     `yaml:"organization"`
	Endpoints    []Endpoint `yaml:"endpoints"`
}

func ReadConfig

func ReadConfig(configFile string) Config

type Endpoint

type Endpoint struct {
	Name    string   `yaml:"name"`
	Type    string   `yaml:"type"`
	Queries []string `yaml:"queries"`
}

Jump to

Keyboard shortcuts

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