package
0.0.0-20240414145403-26ca3435d9c0
Repository: https://github.com/rustamchuk/avito-banner-service.git
Documentation: pkg.go.dev

# Functions

AssertBannerGet200ResponseInnerConstraints checks if the values respects the defined constraints.
AssertBannerGet200ResponseInnerRequired checks if the required fields are not zero-ed.
AssertBannerIdPatchRequestConstraints checks if the values respects the defined constraints.
AssertBannerIdPatchRequestRequired checks if the required fields are not zero-ed.
AssertBannerPost201ResponseConstraints checks if the values respects the defined constraints.
AssertBannerPost201ResponseRequired checks if the required fields are not zero-ed.
AssertBannerPostRequestConstraints checks if the values respects the defined constraints.
AssertBannerPostRequestRequired checks if the required fields are not zero-ed.
AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback.
AssertRecurseValueRequired checks each struct in the nested slice against the callback.
AssertUserBannerGet400ResponseConstraints checks if the values respects the defined constraints.
AssertUserBannerGet400ResponseRequired checks if the required fields are not zero-ed.
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
NewDefaultAPIController creates a default api controller.
NewDefaultAPIService 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.
WithDefaultAPIErrorHandler inject ErrorHandler into controller.
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

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
No description provided by the author
No description provided by the author
DefaultAPIController binds http requests to an api service and writes the service results to the http response.
DefaultAPIService is a service that implements the logic for the DefaultAPIServicer This service should implement the business logic for every endpoint for the DefaultAPI API.
ImplResponse defines an implementation response with error code and 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.
No description provided by the author

# Interfaces

DefaultAPIRouter defines the required methods for binding the api requests to a responses for the DefaultAPI The DefaultAPIRouter implementation should parse necessary information from the http request, pass the data to a DefaultAPIServicer to perform the required actions, then write the service results to the http response.
DefaultAPIServicer defines the api actions for the DefaultAPI 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.
No description provided by the author
Router defines the required methods for retrieving api routes.

# Type aliases

No description provided by the author
DefaultAPIOption for how the controller is set up.
ErrorHandler defines the required method for handling error.
No description provided by the author
No description provided by the author
Routes is a map of defined api endpoints.