tunein

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPartnerID added in v0.5.1

func WithPartnerID(id string) func(*API)

Types

type API

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

API is an API wrapper for opml.radiotime.com opml.radiotime.com is a deprecated endpoint, we do not guarantee this will stay up

func NewClient

func NewClient(options ...func(*API)) *API

NewClient gives a new API instance

func (*API) BrowseStations

func (a *API) BrowseStations(guide string, offset int64) ([]Station, int64, error)

BrowseStations will give back radio stations in a given guide

func (*API) GetGenreGuides

func (a *API) GetGenreGuides() (map[string]string, error)

GetGenreGuides gets a list of all guide IDs for genres

type Genre added in v0.5.0

type Genre struct {
	Name    string `json:"name" bson:"name"`
	GuideID string `json:"guideID" bson:"guideID"`
}

Genre represents the TuneIn representatation of a genre

type Station

type Station struct {
	Name                 string   `json:"name" bson:"name"`
	MediaType            string   `json:"mediaType" bson:"mediaType"`
	BitRate              string   `json:"bitrate" bson:"bitrate"`
	GenreID              string   `json:"GenreID" bson:"GenreID"`
	Reliability          string   `json:"reliability" bson:"reliability"`
	CurrentTrack         string   `json:"currentTrack" bson:"currentTrack"`
	CurrentTrackImageURL string   `json:"currentTrackImageURL" bson:"currentTrackImageURL"`
	TuneInURLs           []string `json:"tuneInURL" bson:"tuneInURL"`
}

Station contains the data of a station listing

Jump to

Keyboard shortcuts

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