Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GameController ¶
type GameController struct {
beego.Controller
}
func (*GameController) Get ¶
func (this *GameController) Get()
func (*GameController) Post ¶
func (this *GameController) Post()
func (*GameController) Put ¶
func (this *GameController) Put()
type GameResponse ¶
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) Get ¶
func (this *MainController) Get()
type StatsController ¶
type StatsController struct {
beego.Controller
}
func (*StatsController) Get ¶
func (this *StatsController) Get()
type StatsObject ¶
type StatsObject struct { Variants string `json:"variants"` Games string `json:"games"` CompletionRate string `json:"completion_rate"` Easiest *StatsVariant `json:"easiest"` Hardest *StatsVariant `json:"hardest"` Highest string `json:"highest"` }
type StatsVariant ¶
type StatsVariant struct { Key string `json:"key"` Score int `json:"score"` OppositeScore int `json:"opposite_score"` Name string `json:"name"` Value string `json:"value"` }
func FindMaxVariant ¶
func FindMaxVariant(conn redis.Conn, source string, opposite string) (response *StatsVariant)
Click to show internal directories.
Click to hide internal directories.