Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OsuQueueAdjacentResponse ¶
type OsuQueueAdjacentResponse struct {
ID string `json:"id"`
Title string `json:"title"`
Artist string `json:"artist"`
Album string `json:"album"`
Duration int32 `json:"duration"`
URL string `json:"url"`
CoverURL string `json:"coverUrl"`
GroupKey string `json:"groupKey"`
GroupSetID int32 `json:"groupSetId"`
}
OsuQueueAdjacentResponse is the JSON shape the frontend's Track interface expects (frontend/src/types/player.ts). GroupSetID is included alongside the string GroupKey so the store can compare groups directly by id instead of parsing it back out of the composite key string.
func NewOsuQueueAdjacentResponse ¶
func NewOsuQueueAdjacentResponse(set *model.BeatmapSet, diff *model.Beatmap) OsuQueueAdjacentResponse
Click to show internal directories.
Click to hide internal directories.