options

package
v0.0.0-...-d7b674b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v1.0.0"

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"`
	MaxSize  int    `yaml:"maxsize"`
	MaxAge   int    `yaml:"maxage"`
	Compress bool   `yaml:"compress"`
}

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
JackTT - Gopher 🇻🇳