Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *entity.Config
Functions ¶
This section is empty.
Types ¶
type IManager ¶
type IManager interface {
CreateChannel(conf *entity.ChannelConfig, shouldSave bool) error
StopChannel(channelID string) error
PauseChannel(channelID string) error
ResumeChannel(channelID string) error
ChannelInfo() []*entity.ChannelInfo
Publish(name string, ch *entity.ChannelInfo)
Subscriber(w http.ResponseWriter, r *http.Request)
LoadConfig() error
SaveConfig() error
Shutdown()
GetChannelThumb(channelID string) string
GetChannelLiveThumb(channelID string) string
ReportCFBlock(username string)
ResetCFBlock(username string)
GetStats() StatsResponse
}
var Manager IManager
type StatsResponse ¶
type StatsResponse struct {
DiskPath string `json:"disk_path"`
DiskUsedBytes uint64 `json:"disk_used_bytes"`
DiskTotalBytes uint64 `json:"disk_total_bytes"`
DiskPercent float64 `json:"disk_percent"`
UptimeSeconds int64 `json:"uptime_seconds"`
RecordingCount int `json:"recording_count"`
}
StatsResponse holds system stats returned by the /api/stats endpoint.
Click to show internal directories.
Click to hide internal directories.