models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Objects map[string]*Object
)

Functions

func AddOne

func AddOne(object Object) (ObjectId string)

func Delete

func Delete(ObjectId string)

func GetAll

func GetAll() map[string]*Object

func Update

func Update(ObjectId string, Score int64) (err error)

Types

type Object

type Object struct {
	ObjectId   string
	Score      int64
	PlayerName string
}

func GetOne

func GetOne(ObjectId string) (object *Object, err error)

Jump to

Keyboard shortcuts

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