Add 'store/' from commit '25456c4ff9247828b6e1eb733ab10712747264d4'

git-subtree-dir: store
git-subtree-mainline: 6e4c6a875a
git-subtree-split: 25456c4ff9
This commit is contained in:
A.Unger
2020-09-18 12:39:05 +02:00
55 changed files with 6865 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
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
}
// GRPC defines the available grpc configuration.
type GRPC 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
GRPC GRPC
Tracing Tracing
Datapath string
Name string
}
// New initializes a new configuration with or without defaults.
func New() *Config {
return &Config{}
}