response.go 393 B

123456789101112131415
  1. package model
  2. // ClientStatusResp response clientstatus request just for debug
  3. type ClientStatusResp struct {
  4. QueueLen int `json:"queue_len"`
  5. Clients []*ClientStatus `json:"clients"`
  6. }
  7. // ClientStatus client status
  8. type ClientStatus struct {
  9. Addr string `json:"addr"`
  10. UpTime int64 `json:"up_time"`
  11. ErrCount int64 `json:"err_count"`
  12. Rate int64 `json:"rate"`
  13. }