owncast/models/stats.go
Gabe Kangas b80ccc4966
WIP
2024-03-25 09:04:05 -07:00

18 lines
539 B
Go

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