Files
opencloud/konnectd/pkg/config/config.go
A.Unger 506ba1aa51 Add 'konnectd/' from commit '3829df495cbcad9bb261518b4afb7d15ba53d54c'
git-subtree-dir: konnectd
git-subtree-mainline: ab1e6d4689
git-subtree-split: 3829df495c
2020-09-18 13:00:53 +02:00

61 lines
1.0 KiB
Go

package config
import (
"stash.kopano.io/kc/konnect/bootstrap"
)
// 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
TLSCert string
TLSKey string
TLS bool
}
// Tracing defines the available tracing configuration.
type Tracing struct {
Enabled bool
Type string
Endpoint string
Collector string
Service string
}
// Asset defines the available asset configuration.
type Asset struct {
Path string
}
// Config combines all available configuration parts.
type Config struct {
File string
Log Log
Debug Debug
HTTP HTTP
Tracing Tracing
Asset Asset
Konnectd bootstrap.Config
}
// New initializes a new configuration with or without defaults.
func New() *Config {
return &Config{}
}