Documentation
¶
Index ¶
- Constants
- func InitLog(enabled bool)
- func VersionString() string
- type Application
- type FavoriteStation
- type Favorites
- type Info
- type Page
- type Player
- func (p *Player) FadeIn(ctx context.Context, duration time.Duration)
- func (p *Player) FadeOut(ctx context.Context, duration time.Duration)
- func (p *Player) Load(url string)
- func (p *Player) Quit()
- func (p *Player) SetVolume(volume int)
- func (p *Player) Start()
- func (p *Player) Stop()
- func (p *Player) Toggle(station Station)
- func (p *Player) VolumeDn()
- func (p *Player) VolumeUp()
- type Retry
- type Station
Constants ¶
View Source
const ( Main = iota Help Tags Search )
View Source
const Version = "0.7.0"
Variables ¶
This section is empty.
Functions ¶
func VersionString ¶
func VersionString() string
Types ¶
type Application ¶ added in v0.4.0
type Application struct {
// contains filtered or unexported fields
}
func NewApp ¶
func NewApp(player *Player, stations []Station) *Application
func (*Application) Run ¶ added in v0.4.0
func (a *Application) Run() error
type FavoriteStation ¶ added in v0.5.7
type Favorites ¶ added in v0.5.7
type Favorites struct {
Stations map[string]*FavoriteStation `json:"stations"`
// contains filtered or unexported fields
}
func NewFavorites ¶ added in v0.5.7
Click to show internal directories.
Click to hide internal directories.