binder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BNameHeader        = "header"
	BNameParam         = "param"
	BNameQuery         = "query"
	BNameFormPost      = "form-urlencoded"
	BNameForm          = "form"
	BNameFormMultipart = "multipart/form-data"
)

Variables

View Source
var (
	ErrInvalidType = errors.New("invalid type")
)
View Source
var FormBinder = &formBinder{}
View Source
var FormMultipartBinder = &formMultipartBinder{}
View Source
var FormPostBinder = &formPostBinder{}
View Source
var HeaderBinder = &headerBinder{}
View Source
var ParamBinder = &paramBinder{}
View Source
var QueryBinder = &queryBinder{}

Functions

This section is empty.

Types

type Binder

type Binder interface {
	Name() string
	Bind(*gin.Context, interface{}) error
}

Jump to

Keyboard shortcuts

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