components

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelItem

type ChannelItem struct {
	ID       int64  `json:"id"`
	Key      string `json:"key"`
	Name     string `json:"name"`
	Playlist string `json:"playlist"`
}

ChannelItem contains di.fm channel metadata

type CurrentlyPlaying

type CurrentlyPlaying struct {
	ChannelID  int64  `json:"channel_id"`
	ChannelKey string `json:"channel_key"`
	Track      Track  `json:"track"`
}

CurrentlyPlaying contains the currently playing metadata for a di.fm channel

type FavoriteItem

type FavoriteItem struct {
	Name        string
	PlaylistURL string
}

FavoriteItem contains a di.fm favorite channel

type StatusMessage

type StatusMessage struct {
	Message  string
	Duration time.Duration
}

StatusMessage is a message to display in the application for a fixed period of time

type Track

type Track struct {
	ID        int       `json:"id"`
	Artist    string    `json:"display_artist"`
	Title     string    `json:"display_title"`
	Duration  float64   `json:"duration"`
	StartTime time.Time `json:"start_time"`
}

Track is metadata about a currently playing di.fm track

type TrackDetails added in v1.3.28

type TrackDetails struct {
	ID          int    `json:"id"`
	AlbumArtURL string `json:"asset_url"`
}

TrackDetails is metadata about a currently playing di.fm track

Jump to

Keyboard shortcuts

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