Documentation
¶
Index ¶
- Variables
- type Config
- type FrontendBackendStats
- type FrontendStats
- type SlowList
- type WebBackend
- func (b *WebBackend) Frontend(c *gin.Context)
- func (b *WebBackend) Run() error
- func (b *WebBackend) Slow(c *gin.Context)
- func (b *WebBackend) V1FrontendBackendStats(c *gin.Context)
- func (b *WebBackend) V1FrontendSlow(c *gin.Context)
- func (b *WebBackend) V1FrontendStats(c *gin.Context)
- func (b *WebBackend) V1FrontendTop(c *gin.Context)
- func (b *WebBackend) V1GCStats(c *gin.Context)
- func (b *WebBackend) V1TopRate(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var MemStats runtime.MemStats
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Logger *zap.SugaredLogger `yaml:"-"`
ListenAddr string `yaml:"listen_addr"`
Stats *stats.Stats
}
type FrontendBackendStats ¶
type FrontendStats ¶
type SlowList ¶
type SlowList struct {
TS time.Time `json:"ts"`
Path string `json:"path"`
Client string `json:"client"`
Backend string `json:"backend"`
Server string `json:"server"`
ServerConnCount int `json:"server_conn_count"`
TotalDurationMs int `json:"total_duration_ms"`
RequestDurationMs int `json:"request_duration_ms"`
ResponseDurationMs int `json:"response_duration_ms"`
}
type WebBackend ¶
type WebBackend struct {
// contains filtered or unexported fields
}
func (*WebBackend) Frontend ¶
func (b *WebBackend) Frontend(c *gin.Context)
func (*WebBackend) Run ¶
func (b *WebBackend) Run() error
func (*WebBackend) Slow ¶
func (b *WebBackend) Slow(c *gin.Context)
func (*WebBackend) V1FrontendBackendStats ¶
func (b *WebBackend) V1FrontendBackendStats(c *gin.Context)
func (*WebBackend) V1FrontendSlow ¶
func (b *WebBackend) V1FrontendSlow(c *gin.Context)
func (*WebBackend) V1FrontendStats ¶
func (b *WebBackend) V1FrontendStats(c *gin.Context)
func (*WebBackend) V1FrontendTop ¶
func (b *WebBackend) V1FrontendTop(c *gin.Context)
func (*WebBackend) V1GCStats ¶
func (b *WebBackend) V1GCStats(c *gin.Context)
func (*WebBackend) V1TopRate ¶
func (b *WebBackend) V1TopRate(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.