options

package
v0.0.0-...-963b505 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 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 ExporterOptions

type ExporterOptions struct {
	Name     string `yaml:"name"`
	URL      string `yaml:"url"`
	Interval int    `yaml:"interval"`
}

type LogOptions

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

type Options

type Options struct {
	Pushgateway PushgatewayOptions `yaml:"pushgateway"`
	Exporters   []ExporterOptions  `yaml:"exporters"`
	Log         LogOptions         `yaml:"log"`
}

func NewOptions

func NewOptions() (opts Options)

type PushgatewayAuthOptions

type PushgatewayAuthOptions struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type PushgatewayOptions

type PushgatewayOptions struct {
	URL                string                 `yaml:"url"`
	InsecureSkipVerify bool                   `yaml:"insecure_skip_verify"`
	CAPath             string                 `yaml:"ca_path"`
	CertPath           string                 `yaml:"cert_path"`
	KeyPath            string                 `yaml:"key_path"`
	Auth               PushgatewayAuthOptions `yaml:"auth"`
}

Jump to

Keyboard shortcuts

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