config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
	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