Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfigFactory ¶
func InitConfigFactory(f string)
InitConfigFactory : read configuration file and parse into structure TODO: Support configuration update from REST api
Types ¶
type AFConfig ¶
type AFConfig struct { AFName string `yaml:"AFName"` Sbi Sbi `yaml:"Sbi"` NrfURI string `yaml:"NrfUri"` LADN string `yaml:"LADN"` Subscriber []string `yaml:"Subscriber"` }
AFConfig : detail information of AF
type Config ¶
type Config struct { Info Info `yaml:"info"` Configuration Configuration `yaml:"configuration"` }
Config : All detail configuration of IPTV
var IptvConfig Config
IptvConfig : Save all information of IPTV
type Configuration ¶
type Configuration struct { IPTVServer IptvServer `yaml:"IPTVServer"` AFConfig AFConfig `yaml:"AFConfig"` }
Configuration : information of IPTV Application and AF
type IptvChannel ¶
type IptvChannel struct { ChannelName string `yaml:"ChannelName"` VideoPath string `yaml:"VideoPath"` }
IptvChannel : detail of each channel
type IptvServer ¶
type IptvServer struct { ServerAddr Ipv4Port `yaml:"ServerAddr"` Channel []IptvChannel `yaml:"Channels"` CacheFolder string `yaml:"CacheFolder"` WebClientFolder string `yaml:"WebClientFolder"` }
IptvServer : Information of server, include iptv server and web client
Click to show internal directories.
Click to hide internal directories.