dump

package
v0.0.0-...-15592ba Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package dump loads data from datastore so it can be dumped to clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plays

func Plays(ctx context.Context, max int64, cursor string) (
	plays []db.PlayDump, nextCursor string, err error)

Plays returns plays from datastore. max 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.

func SingleSong

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

SingleSong returns the song identified by id.

func Songs

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

Songs returns songs from datastore. 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