mirror of
https://github.com/teacat/chaturbate-dvr.git
synced 2025-10-29 16:59:59 +00:00
22 lines
486 B
Go
22 lines
486 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/teacat/chaturbate-dvr/entity"
|
|
)
|
|
|
|
var Manager IManager
|
|
|
|
type IManager interface {
|
|
CreateChannel(conf *entity.ChannelConfig, shouldSave bool) error
|
|
StopChannel(username string) error
|
|
PauseChannel(username string) error
|
|
ResumeChannel(username string) error
|
|
ChannelInfo() []*entity.ChannelInfo
|
|
Publish(name string, ch *entity.ChannelInfo)
|
|
Subscriber(w http.ResponseWriter, r *http.Request)
|
|
LoadConfig() error
|
|
SaveConfig() error
|
|
}
|