Documentation ¶
Index ¶
- type Album
- type AlbumItems
- type Artist
- type ArtistReleases
- type Audioquality
- type LoginUsername
- type Tidal
- func (t Tidal) Album(albumId int) (Album, error)
- func (t Tidal) AlbumItems(albumId int) (AlbumItems, error)
- func (t Tidal) AppToken() string
- func (t Tidal) Artist(artistId int) (Artist, error)
- func (t Tidal) ArtistAlbums(artistId int) (ArtistReleases, error)
- func (t Tidal) ArtistCompilations(artistId int) (ArtistReleases, error)
- func (t Tidal) ArtistEpsAndSingles(artistId int) (ArtistReleases, error)
- func (t Tidal) CountryCode() string
- func (t Tidal) HttpClient() *http.Client
- func (t Tidal) LoginUsername(username string, password string) (LoginUsername, error)
- func (t Tidal) Request(path string, get url.Values, post url.Values) (*http.Response, error)
- func (t Tidal) SessionId() string
- func (t *Tidal) SetCountryCode(countryCode string)
- func (t *Tidal) SetSessionId(sessionId string)
- func (t Tidal) Tracks(trackId int) (TracksUrlpostpaywall, error)
- func (t Tidal) TracksUrlpostpaywall(trackId int, audioquality Audioquality, urlusagemode UrlUsageMode) (TracksUrlpostpaywall, error)
- func (t Tidal) UserFavorites(userId int) (UsersFavorites, error)
- type TracksUrl
- type TracksUrlpostpaywall
- type UrlUsageMode
- type UsersFavorites
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { ID int Title string Duration int StreamReady bool StreamStartDate string AllowStreaming bool PremiumStreamingOnly bool NumberOfTracks int NumberOfVideos int NumberOfVolumes int ReleaseDate string Copyright string Type string Version interface{} URL string Cover string VideoCover interface{} Explicit bool Upc string Popularity int AudioQuality string Artist struct { ID int Name string Type string } Artists []struct { ID int Name string Type string } }
type AlbumItems ¶
type AlbumItems struct { Limit int Offset int TotalNumberOfItems int Items []struct { Item struct { ID int Title string Duration int ReplayGain float64 Peak float64 AllowStreaming bool StreamReady bool StreamStartDate string PremiumStreamingOnly bool TrackNumber int VolumeNumber int Version interface{} Popularity int Copyright string URL string Isrc string Editable bool Explicit bool AudioQuality string Artist struct { ID int Name string Type string } Artists []struct { ID int Name string Type string } Album struct { ID int Title string Cover string } } Type string } }
type ArtistReleases ¶
type ArtistReleases struct { Limit int `json:"limit"` Offset int `json:"offset"` TotalNumberOfItems int `json:"totalNumberOfItems"` Items []struct { ID int `json:"id"` Title string `json:"title"` Duration int `json:"duration"` StreamReady bool `json:"streamReady"` StreamStartDate string `json:"streamStartDate"` AllowStreaming bool `json:"allowStreaming"` PremiumStreamingOnly bool `json:"premiumStreamingOnly"` NumberOfTracks int `json:"numberOfTracks"` NumberOfVideos int `json:"numberOfVideos"` NumberOfVolumes int `json:"numberOfVolumes"` ReleaseDate string `json:"releaseDate"` Copyright string `json:"copyright"` Type string `json:"type"` Version interface{} `json:"version"` URL string `json:"url"` Cover string `json:"cover"` VideoCover interface{} `json:"videoCover"` Explicit bool `json:"explicit"` Upc string `json:"upc"` Popularity int `json:"popularity"` AudioQuality string `json:"audioQuality"` Artist struct { ID int `json:"id"` Name string `json:"name"` Type string `json:"type"` } `json:"artist"` Artists []struct { ID int `json:"id"` Name string `json:"name"` Type string `json:"type"` } `json:"artists"` } `json:"items"` }
type Audioquality ¶
type Audioquality string
const ( AudioqualityLow Audioquality = "LOW" AudioqualityHigh Audioquality = "HIGH" AudioqualityLossless Audioquality = "LOSSLESS" AudioqualityHiRes Audioquality = "HI_RES" )
type LoginUsername ¶
type Tidal ¶
type Tidal struct {
// contains filtered or unexported fields
}
func (Tidal) AlbumItems ¶
func (t Tidal) AlbumItems(albumId int) (AlbumItems, error)
func (Tidal) ArtistAlbums ¶
func (t Tidal) ArtistAlbums(artistId int) (ArtistReleases, error)
func (Tidal) ArtistCompilations ¶
func (t Tidal) ArtistCompilations(artistId int) (ArtistReleases, error)
func (Tidal) ArtistEpsAndSingles ¶
func (t Tidal) ArtistEpsAndSingles(artistId int) (ArtistReleases, error)
func (Tidal) CountryCode ¶
func (Tidal) HttpClient ¶
func (Tidal) LoginUsername ¶
func (t Tidal) LoginUsername(username string, password string) (LoginUsername, error)
func (*Tidal) SetCountryCode ¶
func (*Tidal) SetSessionId ¶
func (Tidal) TracksUrlpostpaywall ¶
func (t Tidal) TracksUrlpostpaywall(trackId int, audioquality Audioquality, urlusagemode UrlUsageMode) (TracksUrlpostpaywall, error)
func (Tidal) UserFavorites ¶
func (t Tidal) UserFavorites(userId int) (UsersFavorites, error)
type TracksUrlpostpaywall ¶
type UrlUsageMode ¶
type UrlUsageMode string
const ( UrlUsageModeStream UrlUsageMode = "STREAM" UrlUsageModeOffline UrlUsageMode = "OFFLINE" )
Click to show internal directories.
Click to hide internal directories.