Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JSON = jsonBinding{} XML = xmlBinding{} Query = queryBinding{} FormPost = formPostBinding{} FormMultipart = formMultipartBinding{} ProtoBuf = protobufBinding{} MsgPack = msgpackBinding{} YAML = yamlBinding{} Header = headerBinding{} )
Functions ¶
func Bind ¶ added in v1.5.11
func Bind(c *fasthttp.RequestCtx, obj interface{}) error
Types ¶
type ArgsSource ¶
func (*ArgsSource) TrySet ¶
func (form *ArgsSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt binding.SetOptions) (isSet bool, err error)
TrySet tries to set a value by request's form source (like map[string][]string)
type Binding ¶
type Binding interface { Name() string Bind(*fasthttp.RequestCtx, interface{}) error }
type BindingBody ¶
type CtxSource ¶
type CtxSource fasthttp.RequestCtx
type HeaderSource ¶
type HeaderSource fasthttp.RequestHeader
func (*HeaderSource) TrySet ¶
func (form *HeaderSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt binding.SetOptions) (isSet bool, err error)
TrySet tries to set a value by request's form source (like map[string][]string)
type MultipartRequest ¶
func (*MultipartRequest) TrySet ¶
func (r *MultipartRequest) TrySet(value reflect.Value, field reflect.StructField, key string, opt binding.SetOptions) (isSet bool, err error)
TrySet tries to set a value by the multipart request with the binding a form file
Click to show internal directories.
Click to hide internal directories.