export

package
v0.0.0-...-fbcb358 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package export loads data from datastore so it can be exported by clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plays

func Plays(ctx context.Context, maxPlays int64, cursor string, minReportTime, minStartTime time.Time) (
	plays []common.PlayDump, nextCursor string, err error)

Plays returns plays from datastore. maxPlays contains the maximum number of plays to return in this call. If cursor is non-empty, it is used to resume an already-started query. If minReportTime or minStartTime is non-zero, it limits which plays are returned and results are sorted by their ReportTime or StartTime property; otherwise they're sorted by SongID.

func SingleSong

func SingleSong(ctx context.Context, id int64) (*common.Song, error)

SingleSong returns the song identified by id. The song's plays are also fetched and included.

func Songs

func Songs(ctx context.Context, maxSongs int64, cursor string, deleted bool, minLastModified time.Time) (
	songs []common.Song, nextCursor string, err error)

Songs returns songs from datastore. Note that only song entities are loaded, so plays will not be included. max specifies the maximum number of songs to return in this call. cursor contains an optional cursor for continuing an earlier request. deleted specifies that only deleted (rather than only live) songs should be returned. minLastModified specifies a minimum last-modified time for returned songs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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