mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 11:09:01 +03:00
19 lines
540 B
Go
19 lines
540 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/owncast/owncast/utils"
|
|
)
|
|
|
|
// Stats holds the stats for the system.
|
|
type Stats struct {
|
|
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
|
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
|
LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
|
|
|
|
StreamConnected bool `json:"-"`
|
|
LastConnectTime *utils.NullTime `json:"-"`
|
|
ChatClients map[string]Client `json:"-"`
|
|
Viewers map[string]time.Time `json:"-"`
|
|
}
|