Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedType = errors.New("decoder: unsupported type")
Functions ¶
This section is empty.
Types ¶
type ArgsDecoder ¶
type ArgsDecoder struct {
// contains filtered or unexported fields
}
func NewArgsDecoder ¶
func NewArgsDecoder(v interface{}, tag string) (*ArgsDecoder, error)
type ArgsGetter ¶
func (*ArgsGetter) Get ¶
func (ps *ArgsGetter) Get(key string) string
func (*ArgsGetter) Values ¶
func (ps *ArgsGetter) Values(key string) []string
type CachedDecoder ¶
type CachedDecoder struct {
// contains filtered or unexported fields
}
func NewCachedDecoder ¶
func NewCachedDecoder(v interface{}, tag string) (*CachedDecoder, error)
func (*CachedDecoder) Decode ¶
func (d *CachedDecoder) Decode(data Getter, v interface{}) error
type HeaderDecoder ¶
type HeaderDecoder struct {
// contains filtered or unexported fields
}
func NewHeaderDecoder ¶
func NewHeaderDecoder(v interface{}, tag string) (*HeaderDecoder, error)
func (*HeaderDecoder) Decode ¶
func (d *HeaderDecoder) Decode(data *fasthttp.RequestHeader, v interface{}) error
type HeaderGetter ¶
type HeaderGetter fasthttp.RequestHeader
func (*HeaderGetter) Get ¶
func (ps *HeaderGetter) Get(key string) string
func (*HeaderGetter) Values ¶
func (ps *HeaderGetter) Values(key string) []string
type ParamsDecoder ¶
type ParamsDecoder struct {
// contains filtered or unexported fields
}
func NewParamsDecoder ¶
func NewParamsDecoder(v interface{}, tag string) (*ParamsDecoder, error)
func (*ParamsDecoder) Decode ¶
func (d *ParamsDecoder) Decode(data []httprouter.Param, v interface{}) error
type ParamsGetter ¶
type ParamsGetter []httprouter.Param
func (ParamsGetter) Get ¶
func (ps ParamsGetter) Get(key string) string
func (ParamsGetter) Values ¶
func (ps ParamsGetter) Values(key string) []string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.