Versions in this module Expand all Collapse all v0 v0.4.1 Sep 16, 2024 v0.4.0 Jan 21, 2024 v0.3.1 Dec 9, 2023 v0.3.0 Dec 9, 2023 Changes in this version type DeezerApiBackend + func (b *DeezerApiBackend) Options() []models.BackendOption v0.2.0 Nov 28, 2023 v0.1.0 Nov 24, 2023 Changes in this version + const DefaultRateLimitWaitSeconds + const MaxItemsPerGet + type Album struct + Id int + Link string + Title string + TrackList string + Type string + type Artist struct + Id int + Link string + Name string + Type string + type BaseResult struct + Err *Error + func (r BaseResult) Error() *Error + type Client struct + HttpClient *resty.Client + func NewClient(token oauth2.TokenSource) Client + func (c Client) UserHistory(offset int, limit int) (result HistoryResult, err error) + func (c Client) UserTracks(offset int, limit int) (TracksResult, error) + type DeezerApiBackend struct + func (b *DeezerApiBackend) ExportListens(oldestTimestamp time.Time, results chan models.ListensResult, ...) + func (b *DeezerApiBackend) ExportLoves(oldestTimestamp time.Time, results chan models.LovesResult, ...) + func (b *DeezerApiBackend) FromConfig(config *viper.Viper) models.Backend + func (b *DeezerApiBackend) Name() string + func (b *DeezerApiBackend) OAuth2Setup(token oauth2.TokenSource) error + func (b *DeezerApiBackend) OAuth2Strategy(redirectUrl *url.URL) auth.OAuth2Strategy + type Error struct + Code int + Message string + Type string + type HistoryResult struct + Next string + Previous string + Total int + Tracks []Listen + type Listen struct + Timestamp int64 + func (t Listen) AsListen() models.Listen + type LovedTrack struct + AddedAt int64 + func (t LovedTrack) AsLove() models.Love + type Result interface + Error func() *Error + type Track struct + Album Album + Artist Artist + Duration int + Explicit bool + Id int + Link string + Rank int + Readable bool + Title string + TitleVersion string + Type string + func (t Track) AsTrack() models.Track + type TracksResult struct + Next string + Previous string + Total int + Tracks []LovedTrack