Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
func NewController ¶
func NewController(conf *config.Config, updates chan provider.Provider) *Controller
func (Controller) InitializeNginx ¶
func (c Controller) InitializeNginx(conf *config.Config)
func (Controller) WatchForRtmp ¶
func (c Controller) WatchForRtmp(shutdownChannel chan bool, waitGroup *sync.WaitGroup)
type GenericProcess ¶
type GenericProcess interface { Run() error IsRunning() bool Stop() error Reload() error Pid() (int, error) }
func NewProcess ¶
func NewProcess(binary string, args []string) GenericProcess
type NginxService ¶
type NginxService struct { Config *config.Config Process GenericProcess Status string }
func NewNginxService ¶
func NewNginxService(conf *config.Config) *NginxService
func (*NginxService) ConfigureServer ¶
func (n *NginxService) ConfigureServer() error
func (*NginxService) RunServer ¶
func (n *NginxService) RunServer(shutdownChannel chan bool, waitGroup *sync.WaitGroup, controller *Controller, stat stats.StatsProvider, errorChannel chan bool)
type NginxTemplate ¶
func (NginxTemplate) Templatize ¶
func (t NginxTemplate) Templatize() (string, error)
type RtmpTemplate ¶
func (RtmpTemplate) Templatize ¶
func (t RtmpTemplate) Templatize() (string, error)
Click to show internal directories.
Click to hide internal directories.