1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-12-20 00:11:27 +03:00
owncast/models/stats.go

19 lines
531 B
Go
Raw Normal View History

package models
import (
"github.com/owncast/owncast/utils"
)
2020-11-13 02:14:59 +03:00
// Stats holds the stats for the system.
type Stats struct {
LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
LastConnectTime *utils.NullTime `json:"-"`
ChatClients map[string]Client `json:"-"`
Viewers map[string]*Viewer `json:"-"`
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
StreamConnected bool `json:"-"`
}