options

package
v0.0.0-...-db48e4d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v0.0.1"

Functions

This section is empty.

Types

type CoreOptions

type CoreOptions struct {
	Mode string     `yaml:"mode"`
	Log  LogOptions `yaml:"log"`
}

type LabelHeaderOptions

type LabelHeaderOptions struct {
	Business  string `yaml:"business"`
	Provider  string `yaml:"provider"`
	Total     string `yaml:"total"`
	Based     string `yaml:"based"`
	Increased string `yaml:"increased"`
	Left      string `yaml:"left"`
}

type LogOptions

type LogOptions struct {
	Level string `yaml:"level"`
	Path  string `yaml:"path"`
}

type Options

type Options struct {
	Core   CoreOptions   `yaml:"core"`
	Web    WebOptions    `yaml:"web"`
	Scrape ScrapeOptions `yaml:"scrape"`
}

func NewOptions

func NewOptions() (opts Options)

type ScrapeOptions

type ScrapeOptions struct {
	Interval    int                `yaml:"interval"`
	Type        string             `yaml:"type"`
	Address     string             `yaml:"address"`
	LabelHeader LabelHeaderOptions `yaml:"label_header"`
}

type WebOptions

type WebOptions struct {
	Listen string `yaml:"listen"`
	Path   string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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