mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
ef22042f4d
* feat: add dev server and health * fix: fix ci * fix: fix comment. * feat: add enabled * remove no need test * feat: mv devServer to internal * feat: default enable pprof Co-authored-by: dylan.wang <dylan.wang@yijinin.com>
13 lines
404 B
Go
13 lines
404 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=6470"`
|
|
MetricsPath string `json:",default=/metrics"`
|
|
HealthPath string `json:",default=/healthz"`
|
|
EnableMetrics bool `json:",default=true"`
|
|
EnablePprof bool `json:",default=true"`
|
|
}
|