Documentation ¶
Index ¶
- Constants
- type LastfmApiBackend
- func (b *LastfmApiBackend) ExportListens(oldestTimestamp time.Time, results chan models.ListensResult, ...)
- func (b *LastfmApiBackend) ExportLoves(oldestTimestamp time.Time, results chan models.LovesResult, ...)
- func (b *LastfmApiBackend) FinishImport() error
- func (b *LastfmApiBackend) FromConfig(config *config.ServiceConfig) models.Backend
- func (b *LastfmApiBackend) ImportListens(export models.ListensResult, importResult models.ImportResult, ...) (models.ImportResult, error)
- func (b *LastfmApiBackend) ImportLoves(export models.LovesResult, importResult models.ImportResult, ...) (models.ImportResult, error)
- func (b *LastfmApiBackend) Name() string
- func (b *LastfmApiBackend) OAuth2Setup(token oauth2.TokenSource) error
- func (b *LastfmApiBackend) OAuth2Strategy(redirectUrl *url.URL) auth.OAuth2Strategy
- func (b *LastfmApiBackend) Options() []models.BackendOption
- func (b *LastfmApiBackend) StartImport() error
Constants ¶
View Source
const ( MaxItemsPerGet = 1000 MaxListensPerGet = 200 MaxListensPerSubmission = 50 MaxPage = 1000000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastfmApiBackend ¶
type LastfmApiBackend struct {
// contains filtered or unexported fields
}
func (*LastfmApiBackend) ExportListens ¶
func (b *LastfmApiBackend) ExportListens(oldestTimestamp time.Time, results chan models.ListensResult, progress chan models.Progress)
func (*LastfmApiBackend) ExportLoves ¶
func (b *LastfmApiBackend) ExportLoves(oldestTimestamp time.Time, results chan models.LovesResult, progress chan models.Progress)
func (*LastfmApiBackend) FinishImport ¶
func (b *LastfmApiBackend) FinishImport() error
func (*LastfmApiBackend) FromConfig ¶
func (b *LastfmApiBackend) FromConfig(config *config.ServiceConfig) models.Backend
func (*LastfmApiBackend) ImportListens ¶
func (b *LastfmApiBackend) ImportListens(export models.ListensResult, importResult models.ImportResult, progress chan models.Progress) (models.ImportResult, error)
func (*LastfmApiBackend) ImportLoves ¶
func (b *LastfmApiBackend) ImportLoves(export models.LovesResult, importResult models.ImportResult, progress chan models.Progress) (models.ImportResult, error)
func (*LastfmApiBackend) Name ¶
func (b *LastfmApiBackend) Name() string
func (*LastfmApiBackend) OAuth2Setup ¶
func (b *LastfmApiBackend) OAuth2Setup(token oauth2.TokenSource) error
func (*LastfmApiBackend) OAuth2Strategy ¶
func (b *LastfmApiBackend) OAuth2Strategy(redirectUrl *url.URL) auth.OAuth2Strategy
func (*LastfmApiBackend) Options ¶ added in v0.3.0
func (b *LastfmApiBackend) Options() []models.BackendOption
func (*LastfmApiBackend) StartImport ¶
func (b *LastfmApiBackend) StartImport() error
Click to show internal directories.
Click to hide internal directories.