controllers

package
v0.0.0-...-dad72f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Game

func Game(this *GameController) (object *game.Object, err error)

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 GameResponse struct {
	Game    *game.Object        `json:"game"`
	Variant *variant.Object     `json:"variant"`
	Correct *variant.DumpObject `json:"correct"`
	Status  string              `json:"status"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL