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 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.