Documentation ¶
Index ¶
- Variables
- func AchievementHandler(w http.ResponseWriter, r *http.Request)
- func BodyReader(r *http.Request) []byte
- func ClaimAchievement(u *consts.User, sdata *scoredata, bm *helper.DBBeatmap) string
- func ClaimbutNoDisplayAchivement(u *consts.User, sdata *scoredata, bm *helper.DBBeatmap)
- func DelCache(CacheKey string)
- func GETAvatar(w http.ResponseWriter, r *http.Request)
- func GETDirectSet(w http.ResponseWriter, r *http.Request)
- func GETScoreboard(w http.ResponseWriter, r *http.Request)
- func GETScreenshot(w http.ResponseWriter, r *http.Request)
- func GETUpdates(w http.ResponseWriter, r *http.Request)
- func GETreplaycompressed(w http.ResponseWriter, r *http.Request)
- func GetCache(CacheKey string) ([]byte, error)
- func GetScoreID(ScoreHash string) int
- func March(a ...string) string
- func POSTScreenshot(w http.ResponseWriter, r *http.Request)
- func POSTSubmitModular(w http.ResponseWriter, r *http.Request)
- func POSTosuerror(w http.ResponseWriter, r *http.Request)
- func Position(UserID int32, FileMD5 string) int
- func SearchDirect(w http.ResponseWriter, r *http.Request)
- func StartCacheCheck()
- type Achievement
- type Cache
- type Score
- type Scoreboard
Constants ¶
This section is empty.
Variables ¶
View Source
var CACHED []*Cache
View Source
var CLIENT *redis.Client
Functions ¶
func AchievementHandler ¶
func AchievementHandler(w http.ResponseWriter, r *http.Request)
func BodyReader ¶
func ClaimAchievement ¶
func GETDirectSet ¶
func GETDirectSet(w http.ResponseWriter, r *http.Request)
func GETScoreboard ¶
func GETScoreboard(w http.ResponseWriter, r *http.Request)
func GETScreenshot ¶
func GETScreenshot(w http.ResponseWriter, r *http.Request)
func GETUpdates ¶
func GETUpdates(w http.ResponseWriter, r *http.Request)
func GETreplaycompressed ¶
func GETreplaycompressed(w http.ResponseWriter, r *http.Request)
func GetScoreID ¶
func POSTScreenshot ¶
func POSTScreenshot(w http.ResponseWriter, r *http.Request)
func POSTSubmitModular ¶
func POSTSubmitModular(w http.ResponseWriter, r *http.Request)
func POSTosuerror ¶
func POSTosuerror(w http.ResponseWriter, r *http.Request)
func SearchDirect ¶
func SearchDirect(w http.ResponseWriter, r *http.Request)
func StartCacheCheck ¶
func StartCacheCheck()
Types ¶
type Achievement ¶
func GetAchievement ¶
func GetAchievement(name string) *Achievement
func (*Achievement) AddToUser ¶
func (a *Achievement) AddToUser(u *consts.User)
func (*Achievement) DisplayToUser ¶
func (a *Achievement) DisplayToUser(u *consts.User)
func (*Achievement) FileIcon ¶
func (a *Achievement) FileIcon(x2 bool) []byte
func (*Achievement) ToString ¶
func (a *Achievement) ToString() string
type Score ¶
type Scoreboard ¶
type Scoreboard struct { User *consts.User ScoreboardType int8 ScoreboardVersion int8 Beatmap *helper.DBBeatmap PlayMode int8 Mods uint16 Friends []*uint32 Scores []*Score ScoreIDs []*uint32 }
func (*Scoreboard) DisplayScoreboard ¶
func (sb *Scoreboard) DisplayScoreboard() (out string)
Click to show internal directories.
Click to hide internal directories.