influxdb/services/httpd/config.go

19 lines
406 B
Go
Raw Normal View History

2015-05-29 19:50:05 +00:00
package httpd
type Config struct {
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
}
}