status.go 555 B

1234567891011121314151617
  1. package models
  2. import "github.com/owncast/owncast/utils"
  3. // Status represents the status of the system.
  4. type Status struct {
  5. Online bool `json:"online"`
  6. ViewerCount int `json:"viewerCount"`
  7. OverallMaxViewerCount int `json:"overallMaxViewerCount"`
  8. SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
  9. LastConnectTime *utils.NullTime `json:"lastConnectTime"`
  10. LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
  11. VersionNumber string `json:"versionNumber"`
  12. StreamTitle string `json:"streamTitle"`
  13. }