package status import "net/http" // Config is the configuration reference for the Status plugin type Config struct { // Address of the http server Address string // Status code returned in case of fail, 503 by default UnavailableStatusCode int `mapstructure:"unavailable_status_code"` } // InitDefaults configuration options func (c *Config) InitDefaults() { if c.UnavailableStatusCode == 0 { c.UnavailableStatusCode = http.StatusServiceUnavailable } }