Versions in this module Expand all Collapse all v1 v1.5.0 Sep 16, 2018 Changes in this version + type APICollection struct + GuideSource GuideSourceAPI + GuideSourceChannel GuideSourceChannelAPI + GuideSourceProgramme GuideSourceProgrammeAPI + Lineup LineupAPI + LineupChannel LineupChannelAPI + VideoSource VideoSourceAPI + VideoSourceTrack VideoSourceTrackAPI + func NewAPICollection(db *sqlx.DB, logger *logrus.Logger) *APICollection + type ConvertibleBoolean bool + func (bit *ConvertibleBoolean) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (bit *ConvertibleBoolean) UnmarshalJSON(data []byte) error + func (bit *ConvertibleBoolean) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (bit ConvertibleBoolean) MarshalJSON() ([]byte, error) + type DiscoveryData struct + BaseURL string + DeviceAuth string + DeviceID string + DeviceUUID string + FirmwareName string + FirmwareVersion string + FriendlyName string + LineupURL string + Manufacturer string + ModelName string + ModelNumber string + TunerCount int + func (d *DiscoveryData) UPNP() upnp.RootDevice + type GuideSource struct + Channels []GuideSourceChannel + ID int + ImportedAt *time.Time + Name string + Password string + Provider string + ProviderData *json.RawMessage + URL string + UpdateFrequency string + Username string + func (g *GuideSource) ProviderConfiguration() *guideproviders.Configuration + type GuideSourceAPI interface + DeleteGuideSource func(guideSourceID int) (*GuideSource, error) + GetAllGuideSources func(includeChannels bool) ([]GuideSource, error) + GetGuideSourceByID func(id int) (*GuideSource, error) + GetGuideSourcesForLineup func(lineupID int) ([]GuideSource, error) + InsertGuideSource func(guideSourceStruct GuideSource, providerData interface{}) (*GuideSource, error) + UpdateGuideSource func(guideSourceID int, providerData interface{}) error + type GuideSourceChannel struct + Data json.RawMessage + GuideID int + GuideProviderChannel *guideproviders.Channel + GuideSource *GuideSource + GuideSourceName string + ID int + ImportedAt *time.Time + ProviderData json.RawMessage + XMLTVID string + type GuideSourceChannelAPI interface + DeleteGuideSourceChannel func(channelID int) (*GuideSourceChannel, error) + GetChannelsForGuideSource func(guideSourceID int) ([]GuideSourceChannel, error) + GetGuideSourceChannelByID func(id int, expanded bool) (*GuideSourceChannel, error) + InsertGuideSourceChannel func(guideID int, channel guideproviders.Channel, providerData interface{}) (*GuideSourceChannel, error) + UpdateGuideSourceChannel func(XMLTVID string, providerData interface{}) error + type GuideSourceChannelDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *GuideSourceChannelDB) DeleteGuideSourceChannel(channelID int) (*GuideSourceChannel, error) + func (db *GuideSourceChannelDB) GetChannelsForGuideSource(guideSourceID int) ([]GuideSourceChannel, error) + func (db *GuideSourceChannelDB) GetGuideSourceChannelByID(id int, expanded bool) (*GuideSourceChannel, error) + func (db *GuideSourceChannelDB) InsertGuideSourceChannel(guideID int, channel guideproviders.Channel, providerData interface{}) (*GuideSourceChannel, error) + func (db *GuideSourceChannelDB) UpdateGuideSourceChannel(XMLTVID string, providerData interface{}) error + type GuideSourceDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *GuideSourceDB) DeleteGuideSource(guideSourceID int) (*GuideSource, error) + func (db *GuideSourceDB) GetAllGuideSources(includeChannels bool) ([]GuideSource, error) + func (db *GuideSourceDB) GetGuideSourceByID(id int) (*GuideSource, error) + func (db *GuideSourceDB) GetGuideSourcesForLineup(lineupID int) ([]GuideSource, error) + func (db *GuideSourceDB) InsertGuideSource(guideSourceStruct GuideSource, providerData interface{}) (*GuideSource, error) + func (db *GuideSourceDB) UpdateGuideSource(guideSourceID int, providerData interface{}) error + type GuideSourceProgramme struct + Channel string + Data json.RawMessage + Date *time.Time + EndTime *time.Time + GuideID int + ImportedAt *time.Time + ProviderData json.RawMessage + StartTime *time.Time + XMLTV *xmltv.Programme + type GuideSourceProgrammeAPI interface + DeleteGuideSourceProgrammesForChannel func(channelID string) error + GetGuideSourceProgrammeByID func(id int) (*GuideSourceProgramme, error) + GetProgrammesForActiveChannels func() ([]GuideSourceProgramme, error) + GetProgrammesForChannel func(channelID string) ([]GuideSourceProgramme, error) + GetProgrammesForGuideID func(guideSourceID int) ([]GuideSourceProgramme, error) + InsertGuideSourceProgramme func(guideID int, programme xmltv.Programme, providerData interface{}) (*GuideSourceProgramme, error) + UpdateGuideSourceProgramme func(programmeID string, providerData interface{}) error + type GuideSourceProgrammeDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *GuideSourceProgrammeDB) DeleteGuideSourceProgrammesForChannel(channelID string) error + func (db *GuideSourceProgrammeDB) GetGuideSourceProgrammeByID(id int) (*GuideSourceProgramme, error) + func (db *GuideSourceProgrammeDB) GetProgrammesForActiveChannels() ([]GuideSourceProgramme, error) + func (db *GuideSourceProgrammeDB) GetProgrammesForChannel(channelID string) ([]GuideSourceProgramme, error) + func (db *GuideSourceProgrammeDB) GetProgrammesForGuideID(guideSourceID int) ([]GuideSourceProgramme, error) + func (db *GuideSourceProgrammeDB) InsertGuideSourceProgramme(guideID int, programme xmltv.Programme, providerData interface{}) (*GuideSourceProgramme, error) + func (db *GuideSourceProgrammeDB) UpdateGuideSourceProgramme(programmeID string, providerData interface{}) error + type HDHomeRunLineupItem struct + AudioCodec string + DRM ConvertibleBoolean + Favorite ConvertibleBoolean + GuideName string + GuideNumber string + HD ConvertibleBoolean + URL string + VideoCodec string + XMLName xml.Name + type Lineup struct + Channels []LineupChannel + CreatedAt *time.Time + DeviceAuth string + DeviceID string + DeviceUUID string + DiscoveryAddress string + FirmwareName string + FirmwareVersion string + ID int + ListenAddress string + Manufacturer string + ModelName string + ModelNumber string + Name string + Port int + SSDP bool + StreamTransport string + Tuners int + func (s *Lineup) GetDiscoveryData() DiscoveryData + type LineupAPI interface + DeleteLineup func(lineupID int) (*Lineup, error) + GetEnabledLineups func(withChannels bool) ([]Lineup, error) + GetLineupByID func(id int, withChannels bool) (*Lineup, error) + InsertLineup func(lineupStruct Lineup) (*Lineup, error) + UpdateLineup func(lineupID int, description string) (*Lineup, error) + type LineupChannel struct + ChannelNumber string + CreatedAt *time.Time + Favorite bool + GuideChannel *GuideSourceChannel + GuideChannelID int + HDHR *HDHomeRunLineupItem + HighDefinition bool + ID int + LineupID int + Title string + VideoTrack *VideoSourceTrack + VideoTrackID int + func (l *LineupChannel) Fill(api *APICollection) + func (l *LineupChannel) HDHomeRunLineupItem() *HDHomeRunLineupItem + func (l *LineupChannel) String() string + type LineupChannelAPI interface + DeleteLineupChannel func(channelID string) error + GetChannelsForLineup func(lineupID int, expanded bool) ([]LineupChannel, error) + GetEnabledChannelsForGuideProvider func(providerID int) ([]LineupChannel, error) + GetEnabledChannelsForVideoProvider func(providerID int) ([]LineupChannel, error) + GetLineupChannelByID func(lineupID int, channelNumber string) (*LineupChannel, error) + InsertLineupChannel func(channelStruct LineupChannel) (*LineupChannel, error) + UpdateLineupChannel func(channelStruct LineupChannel) (*LineupChannel, error) + UpsertLineupChannel func(channelStruct LineupChannel) (*LineupChannel, error) + type LineupChannelDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *LineupChannelDB) DeleteLineupChannel(channelID string) error + func (db *LineupChannelDB) GetChannelsForLineup(lineupID int, expanded bool) ([]LineupChannel, error) + func (db *LineupChannelDB) GetEnabledChannelsForGuideProvider(providerID int) ([]LineupChannel, error) + func (db *LineupChannelDB) GetEnabledChannelsForVideoProvider(providerID int) ([]LineupChannel, error) + func (db *LineupChannelDB) GetLineupChannelByID(lineupID int, channelNumber string) (*LineupChannel, error) + func (db *LineupChannelDB) InsertLineupChannel(channelStruct LineupChannel) (*LineupChannel, error) + func (db *LineupChannelDB) UpdateLineupChannel(channelStruct LineupChannel) (*LineupChannel, error) + func (db *LineupChannelDB) UpsertLineupChannel(channelStruct LineupChannel) (*LineupChannel, error) + type LineupDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *LineupDB) DeleteLineup(lineupID int) (*Lineup, error) + func (db *LineupDB) GetEnabledLineups(withChannels bool) ([]Lineup, error) + func (db *LineupDB) GetLineupByID(id int, withChannels bool) (*Lineup, error) + func (db *LineupDB) InsertLineup(lineupStruct Lineup) (*Lineup, error) + func (db *LineupDB) UpdateLineup(lineupID int, description string) (*Lineup, error) + type VideoSource struct + BaseURL string + ID int + ImportedAt *time.Time + M3UURL string + MaxStreams int + Name string + Password string + Provider string + Tracks []VideoSourceTrack + UpdateFrequency string + Username string + func (v *VideoSource) ProviderConfiguration() *videoproviders.Configuration + type VideoSourceAPI interface + DeleteVideoSource func(videoSourceID int) (*VideoSource, error) + GetAllVideoSources func(includeTracks bool) ([]VideoSource, error) + GetVideoSourceByID func(id int) (*VideoSource, error) + InsertVideoSource func(videoSourceStruct VideoSource) (*VideoSource, error) + UpdateVideoSource func(videoSourceID int, description string) (*VideoSource, error) + type VideoSourceDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *VideoSourceDB) DeleteVideoSource(videoSourceID int) (*VideoSource, error) + func (db *VideoSourceDB) GetAllVideoSources(includeTracks bool) ([]VideoSource, error) + func (db *VideoSourceDB) GetVideoSourceByID(id int) (*VideoSource, error) + func (db *VideoSourceDB) InsertVideoSource(videoSourceStruct VideoSource) (*VideoSource, error) + func (db *VideoSourceDB) UpdateVideoSource(videoSourceID int, description string) (*VideoSource, error) + type VideoSourceTrack struct + Category string + EPGID string + ID int + ImportedAt *time.Time + Logo string + Name string + StreamID int + Type string + VideoSource *VideoSource + VideoSourceID int + VideoSourceName string + type VideoSourceTrackAPI interface + DeleteVideoSourceTrack func(trackID int) (*VideoSourceTrack, error) + GetTracksForVideoSource func(videoSourceID int) ([]VideoSourceTrack, error) + GetVideoSourceTrackByID func(id int, expanded bool) (*VideoSourceTrack, error) + InsertVideoSourceTrack func(trackStruct VideoSourceTrack) (*VideoSourceTrack, error) + UpdateVideoSourceTrack func(providerID, trackID int, trackStruct VideoSourceTrack) error + type VideoSourceTrackDB struct + Collection *APICollection + SQL *sqlx.DB + func (db *VideoSourceTrackDB) DeleteVideoSourceTrack(trackID int) (*VideoSourceTrack, error) + func (db *VideoSourceTrackDB) GetTracksForVideoSource(videoSourceID int) ([]VideoSourceTrack, error) + func (db *VideoSourceTrackDB) GetVideoSourceTrackByID(id int, expanded bool) (*VideoSourceTrack, error) + func (db *VideoSourceTrackDB) InsertVideoSourceTrack(trackStruct VideoSourceTrack) (*VideoSourceTrack, error) + func (db *VideoSourceTrackDB) UpdateVideoSourceTrack(providerID, streamID int, trackStruct VideoSourceTrack) error