radioprovider

package
v0.0.0-...-0f9c540 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Country

type Country struct {
	Name         string `json:"name"`
	Id           string `json:"value"`
	StationCount string `json:"stationcount"`
}

type RadioProvider

type RadioProvider interface {
	GetCountries() ([]Country, error)
	GetStationsByCountry(countryId string) ([]Station, error)
	GetMostPopularStations(count int) ([]Station, error)
	GetMostLikedStations(count int) ([]Station, error)
	GetStationById(stationId string) (Station, error)
	SearchStations(search string) ([]Station, error)
}

type Station

type Station struct {
	Name      string `json:"name"`
	Id        string `json:"id"`
	StreamUrl string `json:"url"`
	Codec     string `json:"codec"`
	Bitrate   string `json:"bitrate"`
	Homepage  string `json:"homepage"`
	Country   string `json:"country"`
	Genre     string `json:"tags"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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