sharedRequests

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameAction

type GameAction 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"`
	UserID       int64  `json:"UserID" xml:"UserID" form:"UserID"`
	Action       bool   `json:"Action" xml:"Action" form:"Action"` //True = Enable, False = Disable (on a GameID)
}

GameAction represents a request to enable a game for a user.

func (*GameAction) FromForm

func (receiver *GameAction) 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)

Directories

Path Synopsis
Package requestInterfaces contains all interfaces common to all requests.
Package requestInterfaces contains all interfaces common to all requests.

Jump to

Keyboard shortcuts

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