Merge pull request #4804 from nii236/lint/services/admin

fixed export lint issues in services/admin
pull/4786/head
Philip O'Toole 2015-11-16 09:19:07 -08:00
commit 7e3a3e0e64
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@
### Bugfixes
- [#4768](https://github.com/influxdb/influxdb/pull/4768): CLI history skips blank lines. Thanks @pires
- [#4766](https://github.com/influxdb/influxdb/pull/4766): Update CLI usage output. Thanks @aneshas
- [#4804](https://github.com/influxdb/influxdb/pull/4804): Complete lint for services/admin. Thanks @nii236
## v0.9.5 [unreleased]

View File

@ -5,6 +5,7 @@ const (
DefaultBindAddress = ":8083"
)
// Config represents the configuration for the admin service.
type Config struct {
Enabled bool `toml:"enabled"`
BindAddress string `toml:"bind-address"`
@ -12,6 +13,7 @@ type Config struct {
HTTPSCertificate string `toml:"https-certificate"`
}
// NewConfig returns an instance of Config with defaults.
func NewConfig() Config {
return Config{
BindAddress: DefaultBindAddress,