config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Modules map[string]*Module `yaml:"modules"`
}

type Module

type Module struct {
	User        string   `yaml:"user"`
	Password    string   `yaml:"password"`
	ProxyURL    string   `yaml:"proxy_url"`
	Collectors  []string `yaml:"collectors"`
	Timeout     int      `yaml:"timeout"`
	InsecureSSL bool     `yaml:"insecure_ssl"`
	RootCA      string   `yaml:"root_ca"`
}

type SafeConfig

type SafeConfig struct {
	sync.RWMutex
	C *Config
}

func (*SafeConfig) ReloadConfig

func (sc *SafeConfig) ReloadConfig(configFile string) error

type Target

type Target struct {
	Name       string
	User       string
	Password   string
	ProxyURL   string
	Collectors []string
	BaseURL    *url.URL
	HttpClient *http.Client
}

Jump to

Keyboard shortcuts

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