Documentation
¶
Index ¶
- type Guess
- type GuessCreate
- type GuessExtended
- type PagedResult
- type Player
- type PlayerCreate
- type RefillResult
- type Room
- type RoomExtended
- type RoomKind
- type Session
- type SessionBase
- type SessionExtended
- type Stats
- type Submission
- type SubmissionCreate
- type SubmissionExtended
- type User
- type UserExtended
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 PagedResult ¶
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"`
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 []UserExtended `json:"top_users"`
}
type Submission ¶
type SubmissionCreate ¶
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.