osuapi

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffDTO

type DiffDTO struct {
	BeatmapID    int32      `json:"beatmap_id"`
	Difficulty   string     `json:"difficulty"`
	Stars        float64    `json:"stars"`
	ApproachRate float32    `json:"approach_rate"`
	DrainTime    int32      `json:"drain_time"`
	BPM          float64    `json:"bpm"`
	AudioFile    string     `json:"audio_file_name"`
	CreatorName  string     `json:"creator_name"`
	Skills       *SkillsDTO `json:"skills,omitempty"` // nil when no mods= given
}

type GroupDTO

type GroupDTO struct {
	BeatmapSetID int32     `json:"beatmap_set_id"`
	SongTitle    string    `json:"song_title"`
	ArtistName   string    `json:"artist_name"`
	Diffs        []DiffDTO `json:"diffs"`
	StarsMin     float64   `json:"stars_min"`
	StarsMax     float64   `json:"stars_max"`
}

type OsuGetBackgroundHandler

type OsuGetBackgroundHandler struct {
	// contains filtered or unexported fields
}

func NewOsuGetBackgroundHandler

func NewOsuGetBackgroundHandler(osuService *service.Osu) *OsuGetBackgroundHandler

func (*OsuGetBackgroundHandler) Handle

func (o *OsuGetBackgroundHandler) Handle(ctx fiber.Ctx) error

type OsuQueueAdjacentHandler

type OsuQueueAdjacentHandler struct {
	// contains filtered or unexported fields
}

func NewOsuQueueAdjacentHandler

func NewOsuQueueAdjacentHandler(repos *repository.Repos) *OsuQueueAdjacentHandler

func (*OsuQueueAdjacentHandler) Handle

func (h *OsuQueueAdjacentHandler) Handle(ctx fiber.Ctx) error

type OsuSongHandler

type OsuSongHandler struct {
	// contains filtered or unexported fields
}

func NewOsuSongHandler

func NewOsuSongHandler(osuService *service.Osu) *OsuSongHandler

func (*OsuSongHandler) Handle

func (h *OsuSongHandler) Handle(ctx fiber.Ctx) error

type OsuSongsHandler

type OsuSongsHandler struct {
	// contains filtered or unexported fields
}

func NewOsuSongsHandler

func NewOsuSongsHandler(repos *repository.Repos) *OsuSongsHandler

func (*OsuSongsHandler) Handle

func (h *OsuSongsHandler) Handle(ctx fiber.Ctx) error

type OsuSongsSearchHandler

type OsuSongsSearchHandler struct {
	// contains filtered or unexported fields
}

func NewOsuSongsSearchHandler

func NewOsuSongsSearchHandler(repos *repository.Repos) *OsuSongsSearchHandler

func (*OsuSongsSearchHandler) Handle

func (h *OsuSongsSearchHandler) Handle(ctx fiber.Ctx) error

type OsuTrackStreamHandler

type OsuTrackStreamHandler struct {
	// contains filtered or unexported fields
}

func NewOsuTrackStreamHandler

func NewOsuTrackStreamHandler(service *service.Osu) *OsuTrackStreamHandler

func (*OsuTrackStreamHandler) Handle

func (h *OsuTrackStreamHandler) Handle(ctx fiber.Ctx) error

type SkillsDTO

type SkillsDTO struct {
	Stamina   float64 `json:"stamina"`
	Tenacity  float64 `json:"tenacity"`
	Agility   float64 `json:"agility"`
	Precision float64 `json:"precision"`
	Reading   float64 `json:"reading"`
	Memory    float64 `json:"memory"`
	Accuracy  float64 `json:"accuracy"`
	Reaction  float64 `json:"reaction"`
}

Jump to

Keyboard shortcuts

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