Explore
Sign In
rgh/go-zero
1
0
Fork 0
You've already forked go-zero
mirror of https://github.com/zeromicro/go-zero.git synced 2026-09-14 15:27:15 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
go-zero/internal/devserver/config.go
T

14 lines
455 B
Go
Raw Permalink Normal View History

feat: add dev server and health (#2665) * 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>
2022-12-10 20:40:23 +08:00
package devserver
// Config is config for inner http server.
type Config struct {
add custom health response information (#4034) Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-04-03 22:33:55 +08:00
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"`
chore: coding style (#4037)
2024-04-03 22:55:52 +08:00
HealthResponse string `json:",default=OK"`
feat: add dev server and health (#2665) * 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>
2022-12-10 20:40:23 +08:00
}
Reference in New Issue Copy Permalink
Version: v1.25.5 Page: 23ms Template: 1ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어