Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = &Config{}
Cfg is the global config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server `mapstructure:"server"` Data struct { Database struct { DSN string `mapstructure:"dsn"` } `mapstructure:"database"` } `mapstructure:"data"` Daemons struct { Compaction struct { CronSchedule string `mapstructure:"cron"` } `mapstructure:"compaction"` ProtoParsing struct { CronSchedule string `mapstructure:"cron"` } `mapstructure:"protoparsing"` } `mapstructure:"daemons"` }
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader is the config loader
type Server ¶ added in v0.3.0
type Server struct { HTTP struct { Addr string `mapstructure:"addr"` Timeout time.Duration `mapstructure:"timeout"` Auth Auth `mapstructure:"auth"` } `mapstructure:"http"` GRPC struct { Addr string `mapstructure:"addr"` Timeout time.Duration `mapstructure:"timeout"` TLS struct { Enabled bool `mapstructure:"enabled"` CertFile string `mapstructure:"certFile"` KeyFile string `mapstructure:"keyFile"` } `mapstructure:"tls"` Auth Auth `mapstructure:"auth"` } `mapstructure:"grpc"` Debug struct { Addr string `mapstructure:"addr"` Timeout time.Duration `mapstructure:"timeout"` } `mapstructure:"debug"` }
Click to show internal directories.
Click to hide internal directories.