Documentation
¶
Overview ¶
Package config contains logic that is related with our application's configuration. Configuration can come from environmental variables or yaml config file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppPort int LogLevel string PromPushGateway string Endpoints []*machinery.Endpoint }
Config holds all our configuration coming from user that our app needs
type YamlEndpoint ¶
type YamlEndpoint struct { Domain string `yaml:"domain"` Interval *time.Duration `yaml:"interval"` HTTPS bool `yaml:"https"` Tag string `yaml:"tag"` Retries *int `yaml:"retries"` Prober string `yaml:"prober"` ReuseConnection bool `yaml:"reuseConnection"` SkipTLSVerification bool `yaml:"skipTLSVerification"` }
YamlEndpoint encapsulates yaml objects that represent endpoints that we want to monitor.
type YamlEndpoints ¶
type YamlEndpoints struct {
Endpoints []YamlEndpoint `yaml:"endpoints"`
}
YamlEndpoints encapsulates yaml objects that represent the array that holds the endpoints with the monitoring domains.
Click to show internal directories.
Click to hide internal directories.