Documentation ¶
Overview ¶
Package health 在线用户数监控
Package health - 服务健康状态监控
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Quantity ¶
func Quantity(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Quantity 数量监控
func Status ¶
func Status(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Status 服务状态监控
Types ¶
type SessionQuntity ¶
type SessionQuntity struct {
TotalSession int64 `json:"total_session"` // 总会话数量
}
SessionQuntity 会话数量结构
type SessionStatus ¶
type SessionStatus struct {
IsRunning bool `json:"is_running"` // 运行状态
}
SessionStatus 会话状态结构
Click to show internal directories.
Click to hide internal directories.