Documentation ¶
Index ¶
- type Application
- type Config
- type ListedStream
- type Live
- type RTMP
- type RecallStream
- type ResumeResponse
- type Server
- type StartSaveValidationResponse
- type StartingType
- type StatusResponse
- type StatusResponseIndividual
- type Stream
- type TransporterRouter
- type ValidationType
- type Views
- func (v *Views) ActiveStreamCheck() bool
- func (v *Views) ActiveStreamsFunc(c echo.Context) error
- func (v *Views) BeginWatchdog()
- func (v *Views) CustomHTTPErrorHandler(err error, c echo.Context)
- func (v *Views) DeleteFunc(c echo.Context) error
- func (v *Views) EndpointsFunc(c echo.Context) error
- func (v *Views) Error404(c echo.Context) error
- func (v *Views) ExistingStreamCheck() bool
- func (v *Views) FacebookHelpFunc(c echo.Context) error
- func (v *Views) ForceRemoveFunc(c echo.Context) error
- func (v *Views) HandleTXLight(url string, function tx.FunctionTX) error
- func (v *Views) HomeFunc(c echo.Context) error
- func (v *Views) ListFunc(c echo.Context) error
- func (v *Views) RecallFunc(c echo.Context) error
- func (v *Views) ResumeFunc(c echo.Context) error
- func (v *Views) SaveFunc(c echo.Context) error
- func (v *Views) SavedStreamCheck() bool
- func (v *Views) ServerErrorFunc(c echo.Context) error
- func (v *Views) StartFunc(c echo.Context) error
- func (v *Views) StartUniqueFunc(c echo.Context) error
- func (v *Views) StatusFunc(c echo.Context) error
- func (v *Views) StopFunc(c echo.Context) error
- func (v *Views) StreamsFunc(c echo.Context) error
- func (v *Views) Websocket(c echo.Context) error
- func (v *Views) YoutubeHelpFunc(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { XMLName xml.Name `xml:"application"` Name string `xml:"name"` Live Live `xml:"live"` }
Application is the endpoint section that streams can go to
type Config ¶
type Config struct { Verbose bool Version string Forwarder string `envconfig:"FORWARDER"` Recorder string `envconfig:"RECORDER"` ForwarderUsername string `envconfig:"FORWARDER_USERNAME"` RecorderUsername string `envconfig:"RECORDER_USERNAME"` ForwarderPassword string `envconfig:"FORWARDER_PASSWORD"` RecorderPassword string `envconfig:"RECORDER_PASSWORD"` StreamServer string `envconfig:"STREAM_SERVER"` TransmissionLight string `envconfig:"TRANSMISSION_LIGHT"` KeyChecker string `envconfig:"KEY_CHECKER"` ServerPort int `envconfig:"SERVER_PORT"` ServerAddress string `envconfig:"SERVER_ADDRESS"` RecordingLocation string `envconfig:"RECORDING_LOCATION"` StreamerWebsocketPath string `envconfig:"STREAMER_WEBSOCKET_PATH"` StreamerAdminPath string `envconfig:"STREAMER_ADMIN_PATH"` }
Config the global web-auth configuration
type ListedStream ¶
type RecallStream ¶
type ResumeResponse ¶
type Server ¶
type Server struct { XMLName xml.Name `xml:"server"` Applications []Application `xml:"application"` }
Server holds all the applications that will accept streams
type StartingType ¶
type StartingType int
StartingType identifies which starting type this should act as
type StatusResponse ¶
type StatusResponse struct { Status []StatusResponseIndividual `json:"status"` Error string `json:"error"` }
type TransporterRouter ¶
type TransporterRouter struct { // ReturningChannel is the channel for returning data on ReturningChannel chan []byte // TransporterUnique is the payload to send to the client TransporterUnique transporter.TransporterUnique }
type ValidationType ¶
type ValidationType int
ValidationType is used to determine how a form input should be validated
type Views ¶
type Views struct {
// contains filtered or unexported fields
}
Views encapsulates our view dependencies
func (*Views) ActiveStreamCheck ¶
ActiveStreamCheck checks if there are any existing streams still registered in the database
func (*Views) ActiveStreamsFunc ¶
func (*Views) BeginWatchdog ¶
func (v *Views) BeginWatchdog()
func (*Views) CustomHTTPErrorHandler ¶
func (*Views) DeleteFunc ¶
DeleteFunc will delete the saved stream before it can start
func (*Views) EndpointsFunc ¶
EndpointsFunc presents the endpoints to the user
func (*Views) ExistingStreamCheck ¶
ExistingStreamCheck checks if there are any existing streams still registered in the database
func (*Views) FacebookHelpFunc ¶
FacebookHelpFunc is the handler for the Facebook help page
func (*Views) ForceRemoveFunc ¶
func (*Views) HandleTXLight ¶
func (v *Views) HandleTXLight(url string, function tx.FunctionTX) error
func (*Views) RecallFunc ¶
RecallFunc can pull back up stream details from the save function and allows you to start a stored stream
func (*Views) ResumeFunc ¶
ResumeFunc is used if the user decides to return at a later date then they can, by inputting the unique code that they were given then they can go to the resume page and enter the code
func (*Views) SaveFunc ¶
SaveFunc allows for the functionality of saving a stream's details for later in order to make things easier for massive operations where you have multiple streams at once
func (*Views) SavedStreamCheck ¶
SavedStreamCheck checks if there are any existing streams still registered in the database
func (*Views) ServerErrorFunc ¶
func (*Views) StartFunc ¶
StartFunc is the core of the program, where it takes the values set by the user in the webpage and processes the data and sends it to the recorder and the forwarder
func (*Views) StartUniqueFunc ¶
StartUniqueFunc is the core of the program, where it takes the values set by the user in the webpage and processes the data and sends it to the recorder and the forwarder with a specified unique key
func (*Views) StatusFunc ¶
StatusFunc is used to check the status of the streams and does this by tail command of the output logs
func (*Views) StopFunc ¶
StopFunc is used when the stream is finished, then you can stop the stream by pressing the stop button, and that would kill all the ffmpeg commands
func (*Views) StreamsFunc ¶
StreamsFunc collects the data from the rtmp stat page of nginx and produces a list of active streaming endpoints from given endpoints
func (*Views) YoutubeHelpFunc ¶
YoutubeHelpFunc is the handler for the YouTube help page
Source Files ¶
- activeStreamCheck.go
- delete.go
- endpoints.go
- errors.go
- existingStreamCheck.go
- facebookHelp.go
- forceRemove.go
- generateUnique.go
- handleTXLight.go
- home.go
- list.go
- recall.go
- resume.go
- save.go
- savedStreamCheck.go
- serverError.go
- start.go
- startSaveValidationHelper.go
- startUnique.go
- startingWSHelper.go
- status.go
- stop.go
- streams.go
- views.go
- watchdog.go
- websiteCheck.go
- websocket.go
- wsHelper.go
- youtubeHelp.go