Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultShutDownTimeout = "10s"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLogConfig ¶
type Config ¶
type Config struct { Listen *string `yaml:"listen" validate:"required"` TLSConfig *TLSConfig `yaml:"tls"` ShutDownTimeout *time.Duration `yaml:"shutdown_timeout"` ExporterConfigs map[string]ExporterConfig `yaml:"exporters" validate:"required,dive"` AccessLogConfig *AccessLogConfig `yaml:"access_log"` ErrorLogConfig *ErrorLogConfig `yaml:"error_log"` }
func LoadConfigFromYAML ¶
type ErrorLogConfig ¶
type ErrorLogConfig struct {
Path *string `yaml:"path" validate"required"`
}
type ExporterConfig ¶
Click to show internal directories.
Click to hide internal directories.