Documentation
¶
Index ¶
- Variables
- func CachePlayer() error
- func LoadPlaylist() error
- func LoadServerConfig(path string) error
- func LoadStreams() error
- func Restart()
- func Run(configPath string)
- func SavePlaylist(p m3uprovider.PlaylistConfig) error
- func SaveServerConfig(config ServerConfig) error
- type GeoIPConfig
- type SecurityConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Config *ServerConfig ConfigPath string )
Functions ¶
func CachePlayer ¶ added in v0.1.0
func CachePlayer() error
func LoadPlaylist ¶ added in v0.1.0
func LoadPlaylist() error
func LoadServerConfig ¶ added in v0.1.0
func LoadStreams ¶ added in v0.0.23
func LoadStreams() error
func SavePlaylist ¶ added in v0.1.0
func SavePlaylist(p m3uprovider.PlaylistConfig) error
func SaveServerConfig ¶ added in v0.1.0
func SaveServerConfig(config ServerConfig) error
Types ¶
type GeoIPConfig ¶ added in v0.0.25
type SecurityConfig ¶ added in v0.0.25
type SecurityConfig struct {
GeoIP GeoIPConfig `json:"geoip,omitempty"`
AllowedCORSDomains []string `json:"allowed_cors_domains,omitempty"`
}
type ServerConfig ¶ added in v0.0.25
type ServerConfig struct {
Port int `json:"port"`
Playlist string `json:"playlist"`
Epg string `json:"epg"`
Timeout int `json:"default_timeout,omitempty"`
NumWorkers int `json:"num_workers,omitempty"`
ScanTime int `json:"scan_time,omitempty"`
Security SecurityConfig `json:"security,omitempty"`
Auth json.RawMessage `json:"auth"`
LogFile string `json:"log_file,omitempty"`
}
func (*ServerConfig) Merge ¶ added in v0.1.0
func (c *ServerConfig) Merge(other ServerConfig)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.