binding

package
v1.13.17 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(c fiber.Ctx, obj interface{}) error

Types

type ArgsSource

type ArgsSource fasthttp.Args

func (*ArgsSource) GetVs added in v1.13.14

func (form *ArgsSource) GetVs(key string) ([]string, bool)

func (*ArgsSource) Has added in v1.13.14

func (form *ArgsSource) Has(key string) bool

func (*ArgsSource) TrySet

func (form *ArgsSource) TrySet(value reflect.Value, field *reflect.StructField, key string, opt *kvstruct.Options) (isSet bool, err error)

TrySet tries to set a value by request's form source (like map[string][]string)

type CtxSource

type CtxSource fasthttp.RequestCtx

func (*CtxSource) GetVs added in v1.13.14

func (form *CtxSource) GetVs(key string) ([]string, bool)

func (*CtxSource) TrySet

func (form *CtxSource) TrySet(value reflect.Value, field *reflect.StructField, key string, opt *kvstruct.Options) (isSet bool, err error)

TrySet tries to set a value by request's form source (like map[string][]string)

type HeaderSource

type HeaderSource fasthttp.RequestHeader

func (*HeaderSource) GetVs added in v1.13.14

func (form *HeaderSource) GetVs(key string) ([]string, bool)

func (*HeaderSource) TrySet

func (form *HeaderSource) TrySet(value reflect.Value, field *reflect.StructField, key string, opt *kvstruct.Options) (isSet bool, err error)

TrySet tries to set a value by request's form source (like map[string][]string)

type RequestSource

type RequestSource struct {
	fiber.Ctx
}

func (RequestSource) Body added in v1.13.14

func (s RequestSource) Body() (string, io.ReadCloser)

func (RequestSource) Form

func (s RequestSource) Form() kvstruct.Setter

func (RequestSource) Header

func (s RequestSource) Header() kvstruct.Setter

func (RequestSource) Query

func (s RequestSource) Query() kvstruct.Setter

func (RequestSource) Uri

func (s RequestSource) Uri() kvstruct.Setter

Jump to

Keyboard shortcuts

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