linted service/admin
parent
43a4201a33
commit
21de6748d7
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue