radio

package
v0.0.0-...-ec10a6c Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRadio

type BaseRadio struct {
}

func (BaseRadio) CanPause

func (c BaseRadio) CanPause() bool

func (BaseRadio) GetDuration

func (BaseRadio) GetDuration() (time.Duration, error)

func (BaseRadio) IsLive

func (c BaseRadio) IsLive() bool

func (BaseRadio) IsLocal

func (c BaseRadio) IsLocal() bool

type CidadeRadio

type CidadeRadio struct {
	BaseRadio
	ID, Name, URL string
}

func (CidadeRadio) GetDirectURL

func (r CidadeRadio) GetDirectURL() (string, error)

func (CidadeRadio) GetFullTitle

func (r CidadeRadio) GetFullTitle() (title, artist string)

func (CidadeRadio) GetID

func (r CidadeRadio) GetID() string

func (CidadeRadio) GetName

func (r CidadeRadio) GetName() string

func (CidadeRadio) GetShareURL

func (r CidadeRadio) GetShareURL() string

func (CidadeRadio) GetThumbnailURL

func (r CidadeRadio) GetThumbnailURL() (string, error)

func (CidadeRadio) IsOpus

func (r CidadeRadio) IsOpus() bool

type GloboRadio

type GloboRadio struct {
	BaseRadio
	ID, Name, URL string
}

func (GloboRadio) GetDirectURL

func (r GloboRadio) GetDirectURL() (string, error)

func (GloboRadio) GetFullTitle

func (r GloboRadio) GetFullTitle() (title, artist string)

func (GloboRadio) GetID

func (r GloboRadio) GetID() string

func (GloboRadio) GetName

func (r GloboRadio) GetName() string

func (GloboRadio) GetShareURL

func (r GloboRadio) GetShareURL() string

func (GloboRadio) GetThumbnailURL

func (r GloboRadio) GetThumbnailURL() (string, error)

func (GloboRadio) IsOpus

func (r GloboRadio) IsOpus() bool

type HunterRadio

type HunterRadio struct {
	BaseRadio
	ID, Name, URL string
}

func (HunterRadio) GetDirectURL

func (r HunterRadio) GetDirectURL() (string, error)

func (HunterRadio) GetFullTitle

func (r HunterRadio) GetFullTitle() (title, artist string)

func (HunterRadio) GetID

func (r HunterRadio) GetID() string

func (HunterRadio) GetName

func (r HunterRadio) GetName() string

func (HunterRadio) GetShareURL

func (r HunterRadio) GetShareURL() string

func (HunterRadio) GetThumbnailURL

func (r HunterRadio) GetThumbnailURL() (string, error)

func (HunterRadio) IsOpus

func (r HunterRadio) IsOpus() bool

type RadioChannel

type RadioChannel interface {
	playable.Playable
	GetID() string
}

func GetRadioByID

func GetRadioByID(id string) RadioChannel

func GetRadioList

func GetRadioList() []RadioChannel

type YouTubeRadio

type YouTubeRadio struct {
	BaseRadio
	ID, Name, URL string
}

func (YouTubeRadio) GetDirectURL

func (r YouTubeRadio) GetDirectURL() (string, error)

func (YouTubeRadio) GetFullTitle

func (r YouTubeRadio) GetFullTitle() (title, artist string)

func (YouTubeRadio) GetID

func (r YouTubeRadio) GetID() string

func (YouTubeRadio) GetName

func (r YouTubeRadio) GetName() string

func (YouTubeRadio) GetPlayable

func (r YouTubeRadio) GetPlayable() playable.Playable

func (YouTubeRadio) GetShareURL

func (r YouTubeRadio) GetShareURL() string

func (YouTubeRadio) GetThumbnailURL

func (r YouTubeRadio) GetThumbnailURL() (string, error)

func (YouTubeRadio) IsOpus

func (r YouTubeRadio) IsOpus() bool

Jump to

Keyboard shortcuts

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