package
0.0.0-20221031115904-5d297aa649e0
Repository: https://github.com/jsfan/hello-neighbour-api.git
Documentation: pkg.go.dev
# Functions
AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback.
AssertRecurseValueRequired checks each struct in the nested slice against the callback.
No description provided by the author
DefaultErrorHandler defines the default logic on how to handle errors from the controller.
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code.
IsZeroValue checks if the val is the zero-ed value.
No description provided by the author
NewRouter creates a new router for any number of api routers.
ReadFormFilesToTempFiles reads files array data from a request form and writes it to a temporary files.
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file.
Response return a ImplResponse struct filled.
ResponseWithHeaders return a ImplResponse struct filled, including headers.
# Constants
No description provided by the author
# Variables
ErrTypeAssertionError is thrown when type an interface does not match the asserted type.
# Structs
No description provided by the author
No description provided by the author
ImplResponse response defines an error code with the associated body.
ParsingError indicates that an error has occurred when parsing request parameters.
RequiredError indicates that an error has occurred when parsing request parameters.
A Route defines the parameters for an api endpoint.
# Interfaces
Router defines the required methods for retrieving api routes.
# Type aliases
No description provided by the author
ErrorHandler defines the required method for handling error.
Routes are a collection of defined api endpoints.