auth

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Headers
	Queries
	Cookies
	Data `in:"body"`
}

Auth auth auth

func (Auth) Output

func (auth Auth) Output(ctx context.Context) (result interface{}, err error)

type Cookies

type Cookies struct {
	CString string   `name:"a" in:"cookie"`
	CSlice  []string `name:"slice" in:"cookie"`
}

type Data

type Data struct {
	A string
	B string
	C string
}

func (Data) ContentType

func (Data) ContentType() string

func (Data) Status

func (Data) Status() int

type FormDataMultipart

type FormDataMultipart struct {
	Bytes []byte `name:"bytes"`
	A     []int  `name:"a"`
	C     uint   `name:"c" `
	Data  Data   `name:"data"`

	File  *multipart.FileHeader   `name:"file"`
	Files []*multipart.FileHeader `name:"files"`
}

type Headers

type Headers struct {
	HInt    int    `in:"header"`
	HString string `in:"header"`
	HBool   bool   `in:"header"`
}

type NoContent

type NoContent struct {
}

func (NoContent) Output

func (NoContent) Output(ctx context.Context) (interface{}, error)

type Queries

type Queries struct {
	QInt            int      `name:"int" in:"query"`
	QString         string   `name:"string" in:"query"`
	QSlice          []string `name:"slice" in:"query"`
	QBytes          []byte   `name:"bytes,omitempty" in:"query"`
	QBytesOmitEmpty []byte   `name:"bytesOmit,omitempty" in:"query"`
	QBytesKeepEmpty []byte   `name:"bytesKeep" in:"query"`
}

type RespWithDescribers

type RespWithDescribers struct {
}

func (RespWithDescribers) Output

func (RespWithDescribers) Output(ctx context.Context) (r interface{}, err error)

Jump to

Keyboard shortcuts

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