2015-05-29 19:50:05 +00:00
|
|
|
package httpd
|
|
|
|
|
|
|
|
type Config struct {
|
2015-05-29 20:12:00 +00:00
|
|
|
Enabled bool `toml:"enabled"`
|
2015-05-29 19:50:05 +00:00
|
|
|
BindAddress string `toml:"bind-address"`
|
|
|
|
AuthEnabled bool `toml:"auth-enabled"`
|
|
|
|
LogEnabled bool `toml:"log-enabled"`
|
|
|
|
WriteTracing bool `toml:"write-tracing"`
|
|
|
|
PprofEnabled bool `toml:"pprof-enabled"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewConfig() Config {
|
|
|
|
return Config{
|
2015-06-01 17:20:57 +00:00
|
|
|
Enabled: true,
|
|
|
|
BindAddress: ":8086",
|
|
|
|
LogEnabled: true,
|
2015-05-29 19:50:05 +00:00
|
|
|
}
|
|
|
|
}
|