config

package
v0.0.0-...-56a9bdf Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 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 API

type API struct {
	Host string
	Port string
}

type Assets

type Assets struct {
	IP   string
	Port string
}

type Comms

type Comms struct {
	Plugin   string
	User     string
	Password string
	Host     string
	Port     string
}

type Config

type Config struct {
	API            API
	Assets         Assets
	Comms          Comms
	DB             DB
	TSDB           TSDB
	Testing        Testing
	Grouping       Grouping
	LocalResources LocalResources
}

func GetConfig

func GetConfig(cfgpath string) (Config, error)

type DB

type DB struct {
	Host         string
	Port         string
	Plugin       string
	DatabaseName string
}

type Grouping

type Grouping struct {
	Interval int // seconds
}

type LocalResources

type LocalResources struct {
	DefaultInterface string
	OptDir           string
	IPAddrOverride   string
}

type TSDB

type TSDB struct {
	Host         string
	Port         string
	Plugin       string
	DatabaseName string
}

type Testing

type Testing struct {
	Timeout int // seconds
}

Jump to

Keyboard shortcuts

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