developerRequests

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 developerRequests contains all requests handling developer entity functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddToken

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

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

func (*AddToken) FromForm

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

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

DevAuth represents an auth try to the system.

func (*DevAuth) FromForm

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

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

DevRegistration represents a request to register a deveoper into the system.

func (*DevRegistration) FromForm

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

type DropToken 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"`
	TokenToDrop  string `json:"TokenToDrop" xml:"TokenToDrop" form:"TokenToDrop"`
}

DropToken represents a POSITIVE response to a developerRequests.DropToken.

If the response is NEGATIVE, please refer to error

func (*DropToken) FromForm

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

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

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

func (*TokenList) FromForm

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