radio

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

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Name   string  `json:"name"`
	Images []Image `json:"images"`
}

type Artist

type Artist struct {
	Name string `json:"name"`
}

type Image

type Image struct {
	Width  int    `json:"width"`
	Height int    `json:"height"`
	URL    string `json:"url"`
}

type SongServer

type SongServer interface {
	Search(query string) ([]Track, error)
	Track(id string) (Track, error)
}

type Track

type Track struct {
	Artists []Artist `json:"artists"`
	Name    string   `json:"name"`
	ID      string   `json:"id"`
	Album   Album    `json:"album"`
}

type Tracks

type Tracks struct {
	Items []Track `json:"items"`
}

Jump to

Keyboard shortcuts

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