hmrapi

package
v0.0.0-...-24d1426 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Beatmaps5GET

func Beatmaps5GET(md common.MethodData) common.CodeMessager

func LogsGET

func SubsCountGetResponse

func SubsCountGetResponse(md common.MethodData) common.CodeMessager

func SubsGET

func TopDonorsGET

func TopDonorsGET(md common.MethodData) common.CodeMessager

func TopPlaysGET

func TopPlaysGET(md common.MethodData) common.CodeMessager

Types

type LogSimple

type LogSimple struct {
	SongName  string               `json:"song_name"`
	LogBody   string               `json:"body"`
	Time      common.UnixTimestamp `json:"time"`
	ScoreID   int                  `json:"scoreid"`
	BeatmapID int                  `json:"beatmap_id"`
	Rank      string               `json:"rank"`
}

type Massive

type Massive struct {
	common.ResponseBase
	Log []LogSimple `json:"logs"`
}

type MixedBeatmap

type MixedBeatmap struct {
	Score2
	Beatmap beatmap  `json:"beatmap"`
	User    miniUser `json:"user"`
}

type Score

type Score struct {
	ID        int     `json:"id"`
	Score     int64   `json:"score"`
	Mods      int     `json:"mods"`
	Count300  int     `json:"count_300"`
	Count100  int     `json:"count_100"`
	Count50   int     `json:"count_50"`
	CountMiss int     `json:"count_miss"`
	PlayMode  int     `json:"play_mode"`
	Accuracy  float64 `json:"accuracy"`
	Rank      string  `json:"rank"`
}

type Score2

type Score2 struct {
	ID         int                  `json:"id"`
	BeatmapMD5 string               `json:"beatmap_md5"`
	Score      int64                `json:"score"`
	MaxCombo   int                  `json:"max_combo"`
	FullCombo  bool                 `json:"full_combo"`
	Mods       int                  `json:"mods"`
	Count300   int                  `json:"count_300"`
	Count100   int                  `json:"count_100"`
	Count50    int                  `json:"count_50"`
	CountGeki  int                  `json:"count_geki"`
	CountKatu  int                  `json:"count_katu"`
	CountMiss  int                  `json:"count_miss"`
	Time       common.UnixTimestamp `json:"time"`
	PlayMode   int                  `json:"play_mode"`
	Accuracy   float64              `json:"accuracy"`
	PP         float32              `json:"pp"`
	Rank       string               `json:"rank"`
	Completed  int                  `json:"completed"`
}

type ScoresResponse

type ScoresResponse struct {
	common.ResponseBase
	Scores []MixedBeatmap `json:"scores"`
}

Jump to

Keyboard shortcuts

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