# Functions
AssertItemRequired checks if the required fields are not zero-ed.
AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback.
AssertRecurseItemRequired recursively checks if required fields are not zero-ed in a nested slice.
AssertRecurseValueRequired checks each struct in the nested slice against the callback.
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
NewItemApiController creates a default api controller.
NewItemApiService creates a default api service.
NewKoalaApiController creates a default api controller.
NewKoalaApiService creates a default api service.
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.
WithItemApiErrorHandler inject ErrorHandler into controller.
WithKoalaApiErrorHandler inject ErrorHandler into controller.
# Variables
ErrTypeAssertionError is thrown when type an interface does not match the asserted type.
# Structs
ImplResponse response defines an error code with the associated body.
Item - An item.
ItemApiController binds http requests to an api service and writes the service results to the http response.
ItemApiService is a service that implements the logic for the ItemApiServicer This service should implement the business logic for every endpoint for the ItemApi API.
KoalaApiController binds http requests to an api service and writes the service results to the http response.
KoalaApiService is a service that implements the logic for the KoalaApiServicer This service should implement the business logic for every endpoint for the KoalaApi API.
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
ItemApiRouter defines the required methods for binding the api requests to a responses for the ItemApi The ItemApiRouter implementation should parse necessary information from the http request, pass the data to a ItemApiServicer to perform the required actions, then write the service results to the http response.
ItemApiServicer defines the api actions for the ItemApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
KoalaApiRouter defines the required methods for binding the api requests to a responses for the KoalaApi The KoalaApiRouter implementation should parse necessary information from the http request, pass the data to a KoalaApiServicer to perform the required actions, then write the service results to the http response.
KoalaApiServicer defines the api actions for the KoalaApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
Router defines the required methods for retrieving api routes.
# Type aliases
ErrorHandler defines the required method for handling error.
ItemApiOption for how the controller is set up.
KoalaApiOption for how the controller is set up.
Routes are a collection of defined api endpoints.