config

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPathsBasedOnConfigFile added in v0.2.7

func SetPathsBasedOnConfigFile(cfgPath string)

func Validate

func Validate() error

Types

type API

type API struct {
	URL string `json:"url" toml:"url" yaml:"url"`
}

API defines the various API options.

type Config

type Config struct {
	Tags            map[string]string `json:"tags"          toml:"tags"          yaml:"tags"`
	API             API               `json:"api"           toml:"api"           yaml:"api"`
	PollingInterval string            `json:"poll_interval" toml:"poll_interval" yaml:"poll_interval"`
	Log             Log               `json:"log"           toml:"log"           yaml:"log"`
	AWSEC2Tags      []string          `json:"aws_ec2_tags"  toml:"aws_ec2_tags"  yaml:"aws_ec2_tags"`
	Debug           bool              `json:"debug"         toml:"debug"         yaml:"debug"`
}

Config defines the running configuration options.

type Log

type Log struct {
	Level  string `json:"level"  toml:"level"  yaml:"level"`
	Pretty bool   `json:"pretty" toml:"pretty" yaml:"pretty"`
}

Log defines the logging configuration options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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