stats.go 531 B

123456789101112131415161718
  1. package models
  2. import (
  3. "github.com/owncast/owncast/utils"
  4. )
  5. // Stats holds the stats for the system.
  6. type Stats struct {
  7. LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
  8. LastConnectTime *utils.NullTime `json:"-"`
  9. ChatClients map[string]Client `json:"-"`
  10. Viewers map[string]*Viewer `json:"-"`
  11. SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
  12. OverallMaxViewerCount int `json:"overallMaxViewerCount"`
  13. StreamConnected bool `json:"-"`
  14. }