external

package
v0.0.0-...-1e944fc Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BonDriverChannel

type BonDriverChannel struct {
	Name               string // 名称
	ChannelIndex       int
	RemoteControlKeyID *uint16 // リモコン番号
	ServiceType        uint8   // サービスタイプ
	ServiceID          uint16  // サービス ID
	NetworkID          uint16  // ネットワーク ID
	TransportStreamID  uint16  // Transport Stream ID
	Enabled            bool    // 状態
}

type BonDriverChannelFile

type BonDriverChannelFile struct {
	Headers  []string
	Channels map[MirakurunChannelType][]*BonDriverChannel
}

func NewBonDriverChannelFile

func NewBonDriverChannelFile() *BonDriverChannelFile

func (*BonDriverChannelFile) AddChannel

func (f *BonDriverChannelFile) AddChannel(channelType MirakurunChannelType, channel *BonDriverChannel)

func (*BonDriverChannelFile) Write

func (f *BonDriverChannelFile) Write(path string) error

type EPGStationChannel

type EPGStationChannel struct {
	ID                 uint64               `json:"id"`
	ServiceID          uint16               `json:"serviceId"`
	NetworkID          uint16               `json:"networkId"`
	Name               string               `json:"name"`
	HalfWidthName      string               `json:"halfWidthName"`
	HasLogoData        bool                 `json:"hasLogoData"`
	ChannelType        MirakurunChannelType `json:"channelType"`
	Channel            string               `json:"channel"`
	Type               *uint8               `json:"type"`
	RemoteControlKeyID *uint16              `json:"remoteControlKeyId"`
}

type EPGStationClient

type EPGStationClient struct {
	// contains filtered or unexported fields
}

func NewEPGStationClient

func NewEPGStationClient(client *http.Client, baseURL *url.URL, header http.Header) *EPGStationClient

func (*EPGStationClient) GetChannelSchedules

func (c *EPGStationClient) GetChannelSchedules(ctx context.Context, channelID uint64) ([]*EPGStationSchedule, error)

func (*EPGStationClient) GetChannels

func (c *EPGStationClient) GetChannels(ctx context.Context) ([]*EPGStationChannel, error)

type EPGStationSchedule

type EPGStationSchedule struct {
	Channel struct {
		Id          uint64 `json:"id"`
		ServiceId   uint16 `json:"serviceId"`
		NetworkId   uint16 `json:"networkId"`
		Name        string `json:"name"`
		HasLogoData bool   `json:"hasLogoData"`
		ChannelType string `json:"channelType"`
		Type        *uint8 `json:"type"`
	} `json:"channel"`
	Programs []struct {
		Id                 uint64 `json:"id"`
		ChannelId          uint64 `json:"channelId"`
		StartAt            int64  `json:"startAt"`
		EndAt              int64  `json:"endAt"`
		IsFree             bool   `json:"isFree"`
		Name               string `json:"name"`
		Description        string `json:"description"`
		Genre1             int    `json:"genre1"`
		SubGenre1          int    `json:"subGenre1"`
		VideoType          string `json:"videoType"`
		VideoResolution    string `json:"videoResolution"`
		VideoStreamContent int    `json:"videoStreamContent"`
		VideoComponentType int    `json:"videoComponentType"`
		AudioSamplingRate  int    `json:"audioSamplingRate"`
		AudioComponentType int    `json:"audioComponentType"`
		Extended           string `json:"extended"`
		Genre2             int    `json:"genre2"`
		SubGenre2          int    `json:"subGenre2"`
		Genre3             int    `json:"genre3"`
		SubGenre3          int    `json:"subGenre3"`
	} `json:"programs"`
}

type MirakurunChannelType

type MirakurunChannelType string
const (
	MirakurunChannelTypeGR  MirakurunChannelType = "GR"
	MirakurunChannelTypeBS  MirakurunChannelType = "BS"
	MirakurunChannelTypeCS  MirakurunChannelType = "CS"
	MirakurunChannelTypeSKY MirakurunChannelType = "SKY"
)

type MirakurunClient

type MirakurunClient struct {
	// contains filtered or unexported fields
}

func NewMirakurunClient

func NewMirakurunClient(client *http.Client, baseURL *url.URL, header http.Header) *MirakurunClient

func (*MirakurunClient) GetServices

func (c *MirakurunClient) GetServices(ctx context.Context) ([]*MirakurunService, error)

type MirakurunService

type MirakurunService struct {
	ID                 uint64  `json:"id"`
	ServiceID          uint16  `json:"serviceId"`
	NetworkID          uint16  `json:"networkId"`
	TransportStreamID  *uint16 `json:"transportStreamId"`
	Name               string  `json:"name"`
	Type               *uint8  `json:"type"`
	LogoId             int     `json:"logoId,omitempty"`
	RemoteControlKeyID *uint16 `json:"remoteControlKeyId"`
	EpgReady           bool    `json:"epgReady"`
	EpgUpdatedAt       int64   `json:"epgUpdatedAt"`
	Channel            struct {
		Type    MirakurunChannelType `json:"type"`
		Channel string               `json:"channel"`
	} `json:"channel"`
	HasLogoData bool    `json:"hasLogoData"`
	LogoData    *string `json:"logoData"`
}

Jump to

Keyboard shortcuts

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