Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Form = Generic(formC)
Form constructs middleware that parses request form according to provided model and injects parsed object into context
View Source
var JSON = Generic(jsonC)
JSON constructs middleware that parses request body according to provided model and injects parsed object into context
Functions ¶
func Generic ¶
func Generic(dc Constructor) func(interface{}) noodle.Middleware
Generic is a middleware factory for request binding. Accepts Constructor and returns binder for model
Types ¶
type Constructor ¶
Constructor is a generic function modelled after json.NewDecoder
Click to show internal directories.
Click to hide internal directories.