Have both connect and disconnect time in the status API
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//Status represents the status of the system
|
||||
type Status struct {
|
||||
Online bool `json:"online"`
|
||||
ViewerCount int `json:"viewerCount"`
|
||||
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
||||
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
||||
|
||||
LastConnectTime time.Time `json:"lastConnectTime"`
|
||||
LastDisconnectTime time.Time `json:"lastDisconnectTime"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user