export

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportData

func ExportData(ctx context.Context, user *models.User, store db.DB, mode string, out io.Writer) error

Types

type BeatScrobbleAlbum

type BeatScrobbleAlbum struct {
	ImageUrl       string         `json:"image_url"`
	MBID           *uuid.UUID     `json:"mbid"`
	Aliases        []models.Alias `json:"aliases"`
	VariousArtists bool           `json:"various_artists"`
}

type BeatScrobbleArtist

type BeatScrobbleArtist struct {
	ImageUrl  string         `json:"image_url"`
	MBID      *uuid.UUID     `json:"mbid"`
	IsPrimary bool           `json:"is_primary"`
	Aliases   []models.Alias `json:"aliases"`
}

type BeatScrobbleExport

type BeatScrobbleExport struct {
	Version     string                 `json:"version"`
	ExportedAt  time.Time              `json:"exported_at"` // RFC3339
	User        string                 `json:"user"`        // username
	Preferences map[string]interface{} `json:"preferences,omitempty"`
	Theme       json.RawMessage        `json:"theme,omitempty"`
	Listens     []BeatScrobbleListen   `json:"listens"`
}

type BeatScrobbleListen

type BeatScrobbleListen struct {
	ListenedAt time.Time            `json:"listened_at"`
	Track      BeatScrobbleTrack    `json:"track"`
	Album      BeatScrobbleAlbum    `json:"album"`
	Artists    []BeatScrobbleArtist `json:"artists"`
}

type BeatScrobbleTrack

type BeatScrobbleTrack struct {
	MBID     *uuid.UUID     `json:"mbid"`
	Duration int            `json:"duration"`
	Aliases  []models.Alias `json:"aliases"`
}

type KoitoExport added in v0.1.30

type KoitoExport = BeatScrobbleExport

Legacy alias

Jump to

Keyboard shortcuts

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