stats.go 523 B

1234567891011121314151617
  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. SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
  8. OverallMaxViewerCount int `json:"overallMaxViewerCount"`
  9. LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
  10. StreamConnected bool `json:"-"`
  11. LastConnectTime *utils.NullTime `json:"-"`
  12. ChatClients map[string]Client `json:"-"`
  13. Viewers map[string]*Viewer `json:"-"`
  14. }