Add initial websocket implementation

This commit is contained in:
Morgan Bazalgette
2017-02-19 18:19:59 +01:00
parent 9b296fc8ed
commit 6f9cae0bcd
25 changed files with 3036 additions and 16 deletions

View File

@@ -8,7 +8,8 @@ import (
"zxq.co/ripple/rippleapi/common"
)
type score struct {
// Score is a score done on Ripple.
type Score struct {
ID int `json:"id"`
BeatmapMD5 string `json:"beatmap_md5"`
Score int64 `json:"score"`
@@ -31,7 +32,7 @@ type score struct {
// beatmapScore is to differentiate from userScore, as beatmapScore contains
// also an user, while userScore contains the beatmap.
type beatmapScore struct {
score
Score
User userData `json:"user"`
}

View File

@@ -7,7 +7,7 @@ import (
)
type userScore struct {
score
Score
Beatmap beatmap `json:"beatmap"`
}