package
0.1.4
Repository: https://github.com/lithictech/go-aperitif.git
Documentation: pkg.go.dev

# Functions

BindAndValidate binds the struct pointed to by paramsStructPr to the requests URL, query, and JSON body parameters.
New returns a new Handler.
No description provided by the author
RegisterCustomType registers a custom type definition, so that other types can be used in API parameters.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

CustomTypeDef is a description of how to bind a custom type to API parameters.
Handler coordinates the binding and validation of request parameters.

# Interfaces

Adapter is an abstraction for how a web framework handles the HTTP request, and request path names and parameters.
HTTPError is an interface for errors returned from request pre-handling.

# Type aliases

Defaulter accepts a string (the value of the "default" struct tag) and returns a string that can be parsed in Parser.
ParamSource is a struct tag name that can define where a field is set by.
Parser accepts a string value and returns a reflect.Value that can be used to set a field of the custom type, or an error if the value cannot be parsed.