Documentation
¶
Overview ¶
Package export loads data from datastore so it can be exported by clients.
Index ¶
- func Plays(ctx context.Context, maxPlays int64, cursor string, ...) (plays []common.PlayDump, nextCursor string, err error)
- func SingleSong(ctx context.Context, id int64) (*common.Song, error)
- func Songs(ctx context.Context, maxSongs int64, cursor string, deleted bool, ...) (songs []common.Song, nextCursor string, err error)
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 ¶
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.