lastfm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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