gameOwnerRequests

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 gameOwnerRequests contains all requests regarding gameOwner entity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddGame

type AddGame 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"`
	GameName        string `json:"GameName" xml:"GameName" form:"GameName"`
	GameDescription string `json:"GameDescription" xml:"GameDescription" form:"GameDescription"`
	MaxPlayers      int64  `json:"MaxPlayers" xml:"MaxPlayers" form:"MaxPlayers"`
}

AddGame represents a request to add a token for an app of the developer.

func (*AddGame) FromForm

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

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

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

type GameOwnerAuth

type GameOwnerAuth struct {
	Type      string `json:"Type" xml:"Type" form:"Type"`
	API_Token string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	Email     string `json:"Email" xml:"Email" form:"Email"`
	Password  string `json:"Password" xml:"Password" form:"Password"`
}

GameOwnerAuth represents an auth try to the system.

func (*GameOwnerAuth) FromForm

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

FromForm Converts from a submitted form (or request) to his struct.

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

type GameOwnerGameList

type GameOwnerGameList 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 to obtain a gameOwnerGameList for the gameOwner.

func (*GameOwnerGameList) FromForm

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

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

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

type GameOwnerRegistration

type GameOwnerRegistration struct {
	Type      string `json:"Type" xml:"Type" form:"Type"`
	API_Token string `json:"API_Token" xml:"API_Token" form:"API_Token"`
	Email     string `json:"Email" xml:"Email" form:"Email"`
	Password  string `json:"Password" xml:"Username" form:"Password"`
}

GameOwnerRegistration represents a request to register a Game Owner into the system.

func (*GameOwnerRegistration) FromForm

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

FromForm Converts from a submitted form (or request) to his struct.

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

type RemoveGame

type RemoveGame 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"`
}

RemoveGame represents a request to remove a game from a gameOwners list.

Only the owner of the game can perform this action.

func (*RemoveGame) FromForm

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

FromForm creates a valid Struct 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