response

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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