streaming

package
v0.0.0-...-e7feb91 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Search(query string) (SearchResult, error)
	GetArtistFull(id string) (ArtistFull, error)
	GetArtist(id string) (Artist, error)
	GetAlbumFull(id string) (AlbumFull, error)
	GetPlaylist(id string) (Playlist, error)
	GetPlaylistFull(id string) (PlaylistFull, error)
	GetTrack(id string) (Track, error)
	GetPageRows() ([]Row, error)
	GetStreamingInfo(id string) (StreamingInfo, error)
}

type Album

type Album struct {
	Id       string
	Title    string
	Version  string
	Release  time.Time
	ImageURL string
	Artists  []Artist
}

type AlbumFull

type AlbumFull struct {
	Album  Album
	Tracks []Track
}

type Artist

type Artist struct {
	Id       string
	Title    string
	ImageURL string
}

type ArtistFull

type ArtistFull struct {
	Artist       Artist
	MostListened []Track
	TopTracks    []Track
	InLibrary    []Album
	Albums       []Album
	SingleAndEps []Album
	Appearances  []Album
}

type Format

type Format string
const Flac Format = "flac"

type Playlist

type Playlist struct {
	Id          string
	Title       string
	ImageURL    string
	Description string
}

type PlaylistFull

type PlaylistFull struct {
	Playlist Playlist
	Tracks   []Track
}

type Row

type Row struct {
	Title     string
	Type      RowType
	Albums    []Album
	Playlists []Playlist
	Mixes     []Playlist
	Tracks    []Track
}

type RowType

type RowType string
const (
	AlbumRow    RowType = "albums"
	PlaylistRow RowType = "playlists"
	MixRow      RowType = "mixes"
	TrackRow    RowType = "tracks"
)

type SearchResult

type SearchResult struct {
	Artists []Artist
	Albums  []Album
	Tracks  []Track
}

type StreamingInfo

type StreamingInfo struct {
	URL        string
	Format     Format
	SampleRate int
	BitDepth   int
}

type Track

type Track struct {
	Id       string
	Title    string
	ImageURL string
	Duration int
	No       int
	Album    Album
	Artists  []Artist
	Volume   int
	Version  string
}

Jump to

Keyboard shortcuts

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