Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TLSMinVersion is the minimum required version of TLS. TLSMinVersion = tls.VersionTLS13 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMode ¶ added in v0.0.13
type AuthMode string
AuthMode defines the authentication mode for the API.
type Config ¶
type Config struct {
ListenAddrs ListenAddrs
ServerURL ServerURL
TLS *TLS
AuthMode AuthMode
InsecureAllowNoAuth bool // DANGER: no authentication even for non-loopback addresses.
DockerHost string // DockerHost is the host to connect to the Docker daemon, falls back to Docker SDK's FromEnv(). Empty if not explicitly set.
InDocker bool
Web Web
Debug bool // deprecated
DataDir string
LogFile LogFile
Sources Sources
ImageNameFFMPEG string
}
Config holds the configuration for the application.
type ListenAddrs ¶ added in v0.0.15
ListenAddrs holds the listen addresses for the application.
type MediaServerSource ¶ added in v0.0.8
type MediaServerSource struct {
ImageName string // ImageName is the Docker image of the MediaMTX server.
StreamKey string
RTMP RTMPSource
RTMPS RTMPSource
}
MediaServerSource holds the configuration for the media server source.
type RTMPSource ¶
RTMPSource holds the configuration for the RTMP source.
type ServerURL ¶ added in v0.0.15
type ServerURL struct {
Raw string // Raw is the original URL string, e.g. "https://example.com:443/"
Scheme string // Scheme is the HTTP scheme, e.g. "http://" or "https://"
Hostname string // Hostname is the domain part of the host, e.g. "example.com"
Port string // Port is the stringified port, e.g. "443" or "80"
BaseURL string // Base URL is the base URL for web component, including trailing slash.
}
ServerURL holds the parsed components of a server URL.
func NewServerURL ¶ added in v0.0.15
NewServerURL parses a raw URL string and returns a ServerURL struct.
type Sources ¶
type Sources struct {
MediaServer MediaServerSource
}
Sources holds the configuration for the sources.
Click to show internal directories.
Click to hide internal directories.