mirror of
https://github.com/teacat/chaturbate-dvr.git
synced 2025-10-29 16:59:59 +00:00
2.0.0 refactor
This commit is contained in:
5
server/config.go
Normal file
5
server/config.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package server
|
||||
|
||||
import "github.com/teacat/chaturbate-dvr/entity"
|
||||
|
||||
var Config *entity.Config
|
||||
21
server/manager.go
Normal file
21
server/manager.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user