Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `env:"MONITOR_SERVER_HOST,required"` Port int `env:"MONITOR_SERVER_PORT,required"` MetricPath string `env:"MONITOR_SERVER_METRIC_PATH" envDefault:"/metric"` StatusPath string `env:"MONITOR_SERVER_STATUS_PATH" envDefault:"/status"` }
func (*Config) ToServerConfig ¶
func (c *Config) ToServerConfig() *serverConfig
Click to show internal directories.
Click to hide internal directories.