Documentation ¶
Index ¶
- Variables
- func Bind(ctx *gin.Context, pair BindPair) error
- func Binds(ctx *gin.Context, pairs ...BindPair) error
- type BindPair
- func Header(val vax.Validatable) BindPair
- func Json(val vax.Validatable) BindPair
- func Pair(b Binding, val vax.Validatable) BindPair
- func Query(val vax.Validatable) BindPair
- func Toml(val vax.Validatable) BindPair
- func Uri(val vax.Validatable) BindPair
- func Xml(val vax.Validatable) BindPair
- func Yaml(val vax.Validatable) BindPair
- type Binding
- type Handler
- type HeaderBinding
- type JsonBinding
- type QueryBinding
- type TomlBinding
- type UriBinding
- type XmlBinding
- type YamlBinding
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BindingJson = JsonBinding{} BindingXml = XmlBinding{} BingQuery = QueryBinding{} BindingYaml = YamlBinding{} BindingToml = TomlBinding{} BindingHeader = HeaderBinding{} BindingUri = UriBinding{} )
View Source
var HandlerChain []Handler
Functions ¶
Types ¶
type BindPair ¶
type BindPair struct { B Binding V vax.Validatable }
func Header ¶
func Header(val vax.Validatable) BindPair
func Json ¶
func Json(val vax.Validatable) BindPair
func Query ¶
func Query(val vax.Validatable) BindPair
func Toml ¶
func Toml(val vax.Validatable) BindPair
func Uri ¶
func Uri(val vax.Validatable) BindPair
func Xml ¶
func Xml(val vax.Validatable) BindPair
func Yaml ¶
func Yaml(val vax.Validatable) BindPair
type HeaderBinding ¶
type HeaderBinding struct { }
func (HeaderBinding) Bind ¶
func (y HeaderBinding) Bind(ctx *gin.Context, val vax.Validatable) error
type JsonBinding ¶
type JsonBinding struct { }
func (JsonBinding) Bind ¶
func (j JsonBinding) Bind(ctx *gin.Context, val vax.Validatable) error
type QueryBinding ¶
type QueryBinding struct { }
func (QueryBinding) Bind ¶
func (q QueryBinding) Bind(ctx *gin.Context, val vax.Validatable) error
type TomlBinding ¶
type TomlBinding struct { }
func (TomlBinding) Bind ¶
func (y TomlBinding) Bind(ctx *gin.Context, val vax.Validatable) error
type UriBinding ¶
type UriBinding struct { }
func (UriBinding) Bind ¶
func (y UriBinding) Bind(ctx *gin.Context, val vax.Validatable) error
type XmlBinding ¶
type XmlBinding struct { }
func (XmlBinding) Bind ¶
func (x XmlBinding) Bind(ctx *gin.Context, val vax.Validatable) error
type YamlBinding ¶
type YamlBinding struct { }
func (YamlBinding) Bind ¶
func (y YamlBinding) Bind(ctx *gin.Context, val vax.Validatable) error
Click to show internal directories.
Click to hide internal directories.