Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Secure        bool     // set secure cookies
	BaseURL       string   // base URL
	HLSBase       *url.URL // base URL for web playback
	AdvertiseRTMP string   // base URL to advertise for RTMP ingest
	AdvertiseLive *url.URL // base URL to advertise for direct HTTP streams

	Channels ingest.Manager
	// contains filtered or unexported fields
}

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) Initialize

func (s *Server) Initialize()

func (*Server) PublishEvent

func (s *Server) PublishEvent(auth model.ChannelAuth, live bool, thumb grabber.Result)

func (*Server) SetOauth

func (s *Server) SetOauth(clientID, clientSecret string)

func (*Server) SetSecret

func (s *Server) SetSecret(secret string)

func (*Server) SetWebhook

func (s *Server) SetWebhook(u string) error