epg

package
v0.0.0-...-12292ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2015 Yoshi Yamaguchi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	LangCode string `json:"langcode"`
	Type     string `json:"type"`
	ExtDesc  string `json:"extdesc"`
}

type Category

type Category struct {
	Large  CategoryLabels `json:"large"`
	Middle CategoryLabels `json:"middle"`
}

type CategoryLabels

type CategoryLabels struct {
	Japanese string `json:"ja_JP"`
	English  string `json:"en"`
}

type EPGData

type EPGData struct {
	ID                string    `json:"id"`
	Name              string    `json:"name"`
	OritinalNetworkID int       `json:"original_network_id"`
	ServiceID         int       `json:"service_id"`
	TransportStreamID int       `json:"transport_stream_id"`
	Programs          []Program `json:"programs"`
}

func New

func New(r io.Reader) ([]EPGData, error)

type ExtDetail

type ExtDetail struct {
	ItemDescription string `json:"item_description"`
	Item            string `json:"item"`
}

type Program

type Program struct {
	EventID    int           `json:"event_id"`
	Channel    string        `json:"channel"`
	Title      string        `json:"title"`
	Detail     string        `json:"detail"`
	StartUnix  int64         `json:"start,omitempty"`
	EndUnix    int64         `json:"end,omitempty"`
	Start      time.Time     `json:"starttime"`
	End        time.Time     `json:"endtime"`
	Category   []Category    `json:"category,omitempty"`
	AttachInfo []interface{} `json:"attachinfo,omitempty"` // TODO(ymotongpoo): confirm contents
	FreeCA     bool          `json:"freeCA,omitempty"`
	Video      Video         `json:"video,omitempty"`
	Duration   time.Duration `json:"duration,omitempty"`
	Audio      []Audio       `json:"audio,omitempty"`
	ExtDetails []ExtDetail   `json:"extdetail,omitempty"`
}

type Video

type Video struct {
	Resolution string `json:"resolution"`
	Aspect     string `json:"aspect"`
}

Jump to

Keyboard shortcuts

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