Documentation
¶
Index ¶
- func Load(packs []*Pack) (err error)
- func MarshalCategories(v interface{}) ([]byte, error)
- func MarshalChannels(v interface{}) ([]byte, error)
- func MarshalGenres(v interface{}) ([]byte, error)
- func Save(data interface{}) (err error)
- func UnmarshalCategories(data []byte, v interface{}) error
- func UnmarshalChannels(data []byte, v interface{}) error
- func UnmarshalEPGData(data []byte, v interface{}) error
- func UnmarshalGenres(data []byte, v interface{}) error
- func WriteCategoriesFile(path string, data []byte) error
- func WriteChannelsFile(path string, data []byte) error
- func WriteGenresFile(path string, data []byte) error
- type Actor
- type Actors
- type Categories
- type Category
- type ChannelData
- type Channels
- type Genre
- type Genres
- type Image
- type Pack
- type Program
- type StdListElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCategories ¶
func MarshalChannels ¶
func MarshalGenres ¶
func UnmarshalCategories ¶
func UnmarshalChannels ¶
func UnmarshalEPGData ¶
func UnmarshalGenres ¶
func WriteCategoriesFile ¶
func WriteChannelsFile ¶
func WriteGenresFile ¶
Types ¶
type Categories ¶
func NewCategories ¶
func NewCategories() *Categories
func ReadCategoriesFile ¶
func ReadCategoriesFile() (categories *Categories, categoryMap map[string]string, err error)
type ChannelData ¶
type ChannelData struct {
TvChannelName string `xml:"ch0"`
TvChannelShort string `xml:"ch1"`
LanguageEn string `xml:"ch2"`
CountryDomain string `xml:"ch3"`
TvChannelId string `xml:"ch4"`
Sort string `xml:"ch5"`
PackageId string `xml:"ch6"`
Cni840f1 string `xml:"ch7"`
CniVps string `xml:"ch8"`
Cni830f2 string `xml:"ch9"`
Cnix26dw string `xml:"ch10"`
TvChannelDvb string `xml:"ch11"`
TvChannelType string `xml:"ch12"`
}
type Channels ¶
type Channels struct {
XMLName xml.Name `xml:"channel"`
ChannelsData []*ChannelData `xml:"data"`
}
func NewChannels ¶
func NewChannels() *Channels
type Image ¶
func (*Image) UnmarshalXML ¶
type Pack ¶
func NewEPGData ¶
func NewEPGData() *Pack
type Program ¶
type Program struct {
BroadcastId string `xml:"d0"`
TvShowId string `xml:"d1"`
TvChannelId string `xml:"d2"`
TvRegionId string `xml:"d3"`
StartTime dateTime `xml:"d4"`
EndTime dateTime `xml:"d5"`
BroadcastDay tinyDate `xml:"d6"`
TvShowLength string `xml:"d7"`
Vps string `xml:"d8"`
PrimeTime string `xml:"d9"`
CategoryId string `xml:"d10"`
TechnicsBw string `xml:"d11"`
TechnicsCoChannel string `xml:"d12"`
TechnicsVt150 string `xml:"d13"`
TechnicsCoded string `xml:"d14"`
TechnicsBlind string `xml:"d15"`
AgeMarker string `xml:"d16"`
LiveId string `xml:"d17"`
TipFlag string `xml:"d18"`
Title string `xml:"d19"`
Subtitle string `xml:"d20"`
CommentLong string `xml:"d21"`
CommentMiddle string `xml:"d22"`
CommentShort string `xml:"d23"`
Themes string `xml:"d24"`
GenreId string `xml:"d25"`
EpisodeNum int `xml:"d26"`
TechnicsStereo string `xml:"d27"`
TechnicsDolby string `xml:"d28"`
TechnicsWide string `xml:"d29"`
TvdTotalValue string `xml:"d30"`
Attribute string `xml:"d31"`
Country string `xml:"d32"`
Year string `xml:"d33"`
Moderator *StdListElement `xml:"d34"`
StudioGuest *StdListElement `xml:"d35"`
Regisseurs *StdListElement `xml:"d36"`
Actors *Actors `xml:"d37"`
ImageSmall *Image `xml:"d38"`
ImageMiddle *Image `xml:"d39"`
ImageBig *Image `xml:"d40"`
SeasonNum int
Category string
Genre string
}
func (*Program) GetAdditionalData ¶
func (*Program) HasCredits ¶
type StdListElement ¶
type StdListElement struct {
List []string
}
func (*StdListElement) UnmarshalXML ¶
func (r *StdListElement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
Click to show internal directories.
Click to hide internal directories.