request

package
v0.0.0-...-2cbf968 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQueryParamToRequest

func AddQueryParamToRequest(req *http.Request, key string, value string)

func GetBodyFromStruct

func GetBodyFromStruct(data interface{}) *bytes.Buffer

func ParseRequestBodyIntoStruct

func ParseRequestBodyIntoStruct(req *http.Request, requestData interface{})

func ParseRequestFormIntoStruct

func ParseRequestFormIntoStruct(req *http.Request, requestFormData interface{})

Types

type AuthenticationPayload

type AuthenticationPayload struct {
	DeviceId           string `schema:"deviceId"`
	UserAuthentication string `schema:"userAuthentication"`
}

type AuthorizationPayload

type AuthorizationPayload struct {
	Username             string
	DeviceId             string
	UserAuthentication   string
	DeviceAuthentication string
	IPAddress            string
	Scope                string
	RequestedPath        string
	GivenParams          string
}

type BasicLoginPayload

type BasicLoginPayload struct {
	Username             string `schema:"username"`
	Password             string `schema:"password"`
	DeviceId             string `schema:"deviceId"`
	AuthenticationMethod string `schema:"authenticationMethod"`
}

type TwoFactorLoginPayload

type TwoFactorLoginPayload struct {
	Username             string `schema:"username"`
	Password             string `schema:"password"`
	DeviceId             string `schema:"deviceId"`
	AuthenticationMethod string `schema:"authenticationMethod"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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