package
1.1.0
Repository: https://github.com/gobuffalo/buffalo.git
Documentation: pkg.go.dev

# Packages

# Functions

Exec will bind the interface to the request.Body.
NewRequestBinder creates our request binder with support for XML, JSON, HTTP and File request types.
Register maps a request Content-Type (application/json) to a Binder.
RegisterCustomDecoder allows to define custom decoders for certain types In the request.
RegisterTimeFormats allows to add custom time layouts that the binder will be able to use for decoding.

# Variables

BaseRequestBinder is an instance of the requestBinder, it comes with preconfigured content type binders for HTML, JSON, XML and Files, as well as custom types decoders for time.Time and nulls.Time.
MaxFileMemory can be used to set the maximum size, in bytes, for files to be stored in memory during uploaded for multipart requests.

# Structs

File holds information regarding an uploaded file.
FileRequestTypeBinder is in charge of binding File request types.
HTMLContentTypeBinder is in charge of binding HTML request types.
JSONContentTypeBinder is in charge of binding JSON request types.
RequestBinder is in charge of binding multiple requests types to struct.
XMLRequestTypeBinder is in charge of binding XML request types.

# Interfaces

Bindable when implemented, on a type will override any Binders that have been configured when using buffalo#Context.Bind.
ContenTypeBinder are those capable of handling a request type like JSON or XML.

# Type aliases

Binder takes a request and binds it to an interface.
CustomTypeDecoder converts a custom type from the request into its exact type.