linted service/admin

pull/4802/head
John Nguyen 2015-11-16 15:22:42 +08:00
parent 43a4201a33
commit 21de6748d7
1 changed files with 2 additions and 0 deletions

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,