revmodels

package
Version: v0.0.0-...-3b02af1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BoardKind = turnbased.BoardKind
View Source
const UserKind = "User"

Variables

This section is empty.

Functions

This section is empty.

Types

type RevBoard

type RevBoard struct {
	db.StringID
	*RevBoardEntity
}

func (RevBoard) Entity

func (b RevBoard) Entity() interface{}

func (RevBoard) Kind

func (RevBoard) Kind() string

func (RevBoard) NewEntity

func (RevBoard) NewEntity() interface{}

func (*RevBoard) SetEntity

func (b *RevBoard) SetEntity(v interface{})

type RevBoardEntity

type RevBoardEntity struct {
	turnbased.BoardEntityBase
	BoardTurns   int    `datastore:"bt,noindex,omitempty"`
	BoardData    []byte `datastore:"bd,noindex,omitempty"`
	BoardHistory string `datastore:"bh,noindex,omitempty"`
}

func (*RevBoardEntity) GetBoard

func (entity *RevBoardEntity) GetBoard() (board revgame.Board, err error)

func (*RevBoardEntity) SetBoardState

func (entity *RevBoardEntity) SetBoardState(b revgame.Board)

type User

type User struct {
	db.StringID
	*UserEntity
}

func (User) Entity

func (user User) Entity() interface{}

func (User) Kind

func (User) Kind() string

func (User) NewEntity

func (User) NewEntity() interface{}

func (User) SetEntity

func (user User) SetEntity(entity interface{})

type UserEntity

type UserEntity = strongo.AppUserBase

Source Files

Jump to

Keyboard shortcuts

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