Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrServerClosed = srt.ErrServerClosed
ErrServerClosed is returned by ListenAndServe if the server has been closed regularly with the Close() function.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The address the SRT server should listen on, e.g. ":1935" Addr string // A token that needs to be added to the URL as query string // in order push or pull a stream. The key for the query // parameter is "token". Optional. By default no token is // required. Token string Passphrase string // Logger. Optional. Logger log.Logger Collector session.Collector SRTLogTopics []string }
Config for a new SRT server
type Connection ¶
type Connection struct { Log map[string][]Log Stats srt.Statistics }
Click to show internal directories.
Click to hide internal directories.