factory

package
v0.0.0-...-5b342f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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 Info

type Info struct {
	Version string `yaml:"version"`

	Description string `yaml:"description"`
}

Info : Information of IPTV

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

type Ipv4Port

type Ipv4Port struct {
	IPv4Addr string `yaml:"IPv4"`

	Port int `yaml:"Port"`
}

Ipv4Port : Ipv4 and Port

type Sbi

type Sbi struct {
	Scheme   string `yaml:"scheme"`
	TLS      *TLS   `yaml:"tls"`
	IPv4Addr string `yaml:"ipv4Addr,omitempty"`
	// IPv6Addr string `yaml:"ipv6Addr,omitempty"`
	Port int `yaml:"port,omitempty"`
}

Sbi : sbi information

type TLS

type TLS struct {
	PEM string `yaml:"pem"`
	Key string `yaml:"key"`
}

TLS : information of TLS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL