export

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 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, out io.Writer) error

Types

type KoitoAlbum

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

type KoitoArtist

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

type KoitoExport

type KoitoExport struct {
	Version    string        `json:"version"`
	ExportedAt time.Time     `json:"exported_at"` // RFC3339
	User       string        `json:"user"`        // username
	Listens    []KoitoListen `json:"listens"`
}

type KoitoListen

type KoitoListen struct {
	ListenedAt time.Time     `json:"listened_at"`
	Track      KoitoTrack    `json:"track"`
	Album      KoitoAlbum    `json:"album"`
	Artists    []KoitoArtist `json:"artists"`
}

type KoitoTrack

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

Jump to

Keyboard shortcuts

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