Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JSON = jsonBinding{} XML = xmlBinding{} Form = formBinding{} Query = queryBinding{} FormPost = formPostBinding{} FormMultipart = formMultipartBinding{} Uri = uriBinding{} ProtoBuf = protobufBinding{} MsgPack = msgpackBinding{} YAML = yamlBinding{} Header = headerBinding{} )
Functions ¶
This section is empty.
Types ¶
type ArgsSource ¶ added in v1.7.2
func (*ArgsSource) TrySet ¶ added in v1.7.2
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 ¶ added in v1.7.2
type CtxSource fasthttp.RequestCtx
type HeaderSource ¶ added in v1.7.2
type HeaderSource fasthttp.RequestHeader
func (*HeaderSource) Peek ¶ added in v1.7.2
func (form *HeaderSource) Peek(key string) ([]string, bool)
func (*HeaderSource) TrySet ¶ added in v1.7.2
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 ¶ added in v1.7.2
func (*MultipartRequest) TrySet ¶ added in v1.7.2
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.