Files
QSfera/webdav/pkg/config/config.go
T
A.Unger 72a987f8e3 Add 'webdav/' from commit '0d5eded8d0068b8df984b3d4c44a66f10c97cf77'
git-subtree-dir: webdav
git-subtree-mainline: 7ffaa859b3
git-subtree-split: 0d5eded8d0
2020-09-18 12:56:12 +02:00

47 lines
815 B
Go

package config
// Log defines the available logging configuration.
type Log struct {
Level string
Pretty bool
Color bool
}
// Debug defines the available debug configuration.
type Debug struct {
Addr string
Token string
Pprof bool
Zpages bool
}
// HTTP defines the available http configuration.
type HTTP struct {
Addr string
Namespace string
Root string
}
// Tracing defines the available tracing configuration.
type Tracing struct {
Enabled bool
Type string
Endpoint string
Collector string
Service string
}
// Config combines all available configuration parts.
type Config struct {
File string
Log Log
Debug Debug
HTTP HTTP
Tracing Tracing
}
// New initializes a new configuration with or without defaults.
func New() *Config {
return &Config{}
}