Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FormDecoder = fx.Annotated{ Target: NewForm, Group: "rb.decoder", }
FormDecoder provides an form decoder annotated with the correct group
View Source
var JSONDecoder = fx.Annotated{ Target: NewJSON, Group: "rb.decoder", }
JSONDecoder annotates the json decoder constructor as the correct group
Functions ¶
This section is empty.
Types ¶
type Binder ¶
type Binder struct {
// contains filtered or unexported fields
}
Binder provides the ability to bind requests to values
type Conf ¶
type Conf struct {
DecoderOrder []string `env:"RB_BIND_DECODER_ORDER" envSeparator:","`
}
Conf configures the binder
type Decoder ¶
type Decoder interface { Name() string Decode(r *http.Request, v interface{}, mt string, mtParams map[string]string) error }
Decoder can be implemented to decode http requests
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
Form decoder supports decoding of url encoded values
Click to show internal directories.
Click to hide internal directories.