Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guess ¶
type Guess struct {
ID string `json:"id"`
UserID int `json:"user_id"`
PlayerID int `json:"player_id"`
Guess int `json:"guess"`
ActualRank int `json:"actual_rank"`
Elo int `json:"elo"`
ScoreID int `json:"score_id"`
Kind RoomKind `json:"kind"`
BeatmapID int `json:"beatmap_id"`
BeatmapSetID int `json:"beatmapset_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type GuessCreate ¶
type GuessExtended ¶
type Player ¶
type Player struct {
PlayerCreate
CreatedAt time.Time `json:"created_at"`
CheckedAt time.Time `json:"checked_at"`
}
type PlayerCreate ¶
type RefillResult ¶
type Room ¶
type Room struct {
ID string `json:"id"`
UserID int `json:"user_id"`
ScoreID int `json:"score_id"`
PlayerID int `json:"player_id"`
Kind RoomKind `json:"kind"`
ReplayURL string `json:"replay_url"`
GuessID *string `json:"guess_id" db:"guess_id"`
ClosesAt time.Time `json:"closes_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RoomExtended ¶
type Session ¶
type Session struct {
UserID int `json:"user_id"`
SessionBase
}
type SessionBase ¶
type SessionExtended ¶
type SessionExtended struct {
User User `json:"user"`
SessionBase
}
type Stats ¶
type Stats struct {
Count24h int `json:"count_24h"`
CountGlobal int `json:"count_global"`
Best []GuessExtended `json:"best"`
TopUsers Paged[UserExtended] `json:"top_users"`
}
type Submission ¶
type SubmissionCreate ¶
type SubmissionCreate struct {
UserID int `json:"user_id"`
PlayerID int `json:"player_id"`
ScoreID int `json:"score_id"`
HasReplay bool `json:"has_replay"`
IsAnonymous bool `json:"is_anonymous"`
BeatmapID int `json:"beatmap_id"`
BeatmapsetID int `json:"beatmapset_id"`
Comment string `json:"comment"`
}
type SubmissionExtended ¶
type SubmissionExtended struct {
Submission
User User `json:"user"`
}
type User ¶
type User struct {
Elo uint `json:"elo"`
OsuID int `json:"osu_id"`
Username string `json:"username"`
AvatarURL string `json:"avatar_url"`
CountryCode string `json:"country_code"`
IsAdmin bool `json:"is_admin"`
AvailableGuesses uint `json:"available_guesses"`
RefilledAt time.Time `json:"refilled_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type UserExtended ¶
Click to show internal directories.
Click to hide internal directories.