tidal

package
v0.0.0-...-6ef97a2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: GPL-3.0 Imports: 8 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 {
	ID        uint     `json:"id" mapstructure:"id"`
	Name      string   `json:"title" mapstructure:"title"`
	Artist    Artist   `json:"artist" mapstructure:"artist"`
	Artists   []Artist `json:"artists" mapstructure:"artists"`
	Tracks    int      `json:"numberOfTracks" mapstructure:"numberOfTracks"`
	Duration  int      `json:"duration" mapstructure:"duration"`
	Copyright string   `json:"copyright" mapstructure:"copyright"`
	Explicit  bool     `json:"explicit" mapstructure:"explicit"`
	ImgURL    string
}

type AlbumShort

type AlbumShort struct {
	ID   uint   `json:"id" mapstructure:"id"`
	Name string `json:"title" mapstructure:"title"`
}

type Artist

type Artist struct {
	ID          uint     `json:"id" mapstructure:"id"`
	Name        string   `json:"name" mapstructure:"name"`
	ArtistTypes []string `json:"artistTypes" mapstructure:"artistTypes"`
	Popularity  int      `json:"popularity" mapstructure:"popularity"`
	ImgURL      string
}

type SearchResponse

type SearchResponse struct {
	Limit      int           `json:"limit"`
	Offset     int           `json:"offset"`
	TotalItems int           `json:"totalNumberOfItems"`
	Items      []interface{} `json:"items"`
}

type Tidal

type Tidal struct {
	SessionID   string `json:"sessionId"`
	CountryCode string `json:"countryCode"`
	UserID      uint   `json:"userId"`
	// contains filtered or unexported fields
}

func (*Tidal) Login

func (t *Tidal) Login(username string, password string) error

func (Tidal) Search

func (t Tidal) Search(term string, zone string) (interface{}, error)

type Track

type Track struct {
	ID         uint       `json:"id" mapstructure:"id"`
	Name       string     `json:"title" mapstructure:"title"`
	Duration   int        `json:"duration" mapstructure:"duration"`
	Track      int        `json:"trackNumber" mapstructure:"trackNumber"`
	Disc       int        `json:"volumeNumber" mapstructure:"volumeNumber"`
	Version    int        `json:"version" mapstructure:"version"`
	Popularity int        `json:"popularity" mapstructure:"popularity"`
	Artist     Artist     `json:"artist" mapstructure:"artist"`
	Artists    []Artist   `json:"artists" mapstructure:"artists"`
	Album      AlbumShort `json:"album" mapstructure:"album"`
	Available  bool       `json:"streamReady" mapstructure:"streamReady"`
	Format     string     `json:"type" mapstructure:"type"`
	Explicit   bool       `json:"explicit" mapstructure:"explicit"`
}

Jump to

Keyboard shortcuts

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