go-zero/internal/devserver/config.go
2024-04-03 22:55:52 +08:00

14 lines
455 B
Go

package devserver
// Config is config for inner http server.
type Config struct {
Enabled bool `json:",default=true"`
Host string `json:",optional"`
Port int `json:",default=6060"`
MetricsPath string `json:",default=/metrics"`
HealthPath string `json:",default=/healthz"`
EnableMetrics bool `json:",default=true"`
EnablePprof bool `json:",default=true"`
HealthResponse string `json:",default=OK"`
}