outGameRequests

package
v0.0.0-...-659eabc Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package outGameRequests contains all models regarding all the requests from logged users searching for games to play.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyEnabledGames

type MyEnabledGames struct {
	Type         string `json:"Type" xml:"Type" form:"Type"`
	API_Token    string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	SessionToken string `json:"SessionToken" xml:"SessionToken" form:"SessionToken"`
}

MyGames represents a request dome (or all) the games available to a single user.

func (*MyEnabledGames) FromForm

func (receiver *MyEnabledGames) FromForm(c echo.Context) error

FromForm creates a valid Sruct based on form data submitted, or returns error.

Does not check for the validity of the items inside the struct (e.g. tokens)

type UserGameDetail

type UserGameDetail struct {
	Type         string `json:"Type" xml:"Type" form:"Type"`
	API_Token    string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	SessionToken string `json:"SessionToken" xml:"SessionToken" form:"SessionToken"`
	GameID       int64  `json:"GameID" xml:"GameID" form:"GameID"`
}

UserGameDetail represents a request to get details for a single game.

func (*UserGameDetail) FromForm

func (receiver *UserGameDetail) FromForm(c echo.Context) error

FromForm creates a valid Sruct based on form data submitted, or returns error.

Does not check for the validity of the items inside the struct (e.g. tokens)

type UserGameList

type UserGameList struct {
	Type         string `json:"Type" xml:"Type" form:"Type"`
	API_Token    string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	SessionToken string `json:"SessionToken" xml:"SessionToken" form:"SessionToken"`
}

UserGameList represents a request dome (or all) the games available to a single user.

func (*UserGameList) FromForm

func (receiver *UserGameList) FromForm(c echo.Context) error

FromForm creates a valid Sruct based on form data submitted, or returns error.

Does not check for the validity of the items inside the struct (e.g. tokens)

Jump to

Keyboard shortcuts

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