package
0.0.0-20220524005630-444540b1c449
Repository: https://github.com/cnshackthon/dscf.git
Documentation: pkg.go.dev
# Functions
AssertLocationDetailsRequired checks if the required fields are not zero-ed.
AssertLocationResponseRequired checks if the required fields are not zero-ed.
AssertInterfaceRequired recursively checks each struct in a slice against the callback.
AssertRecurseLocationDetailsRequired recursively checks if required fields are not zero-ed in a nested slice.
AssertRecurseLocationResponseRequired recursively checks if required fields are not zero-ed in a nested slice.
AssertRecurseSubIdsRequired recursively checks if required fields are not zero-ed in a nested slice.
AssertNestedValueRequired checks each struct in the nested slice against the callback.
AssertSubIdsRequired 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
NewLocationApiController creates a default api controller.
NewLocationApiService creates a default api service.
NewRecordCRUDApiController creates a default api controller.
NewRecordCRUDApiService creates a default api service.
NewRouter creates a new router for any number of api routers.
NewSubscriberApiController creates a default api controller.
NewSubscriberApiService creates a default api service.
NewUeIdCRUDApiController creates a default api controller.
NewUeIdCRUDApiService creates a default api service.
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.
WithLocationApiErrorHandler inject ErrorHandler into controller.
WithRecordCRUDApiErrorHandler inject ErrorHandler into controller.
WithSubscriberApiErrorHandler inject ErrorHandler into controller.
WithUeIdCRUDApiErrorHandler inject ErrorHandler into controller.
# Variables
ErrTypeAssertionError is thrown when type an interface does not match the asserted type.
# Structs
Implementation response defines an error code with the associated body.
LocationApiController binds http requests to an api service and writes the service results to the http response.
LocationApiService is a service that implements the logic for the LocationApiServicer This service should implement the business logic for every endpoint for the LocationApi API.
No description provided by the author
No description provided by the author
ParsingError indicates that an error has occurred when parsing request parameters.
RecordCRUDApiController binds http requests to an api service and writes the service results to the http response.
RecordCRUDApiService is a service that implements the logic for the RecordCRUDApiServicer This service should implement the business logic for every endpoint for the RecordCRUDApi API.
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
SubscriberApiController binds http requests to an api service and writes the service results to the http response.
SubscriberApiService is a service that implements the logic for the SubscriberApiServicer This service should implement the business logic for every endpoint for the SubscriberApi API.
UeIdCRUDApiController binds http requests to an api service and writes the service results to the http response.
UeIdCRUDApiService is a service that implements the logic for the UeIdCRUDApiServicer This service should implement the business logic for every endpoint for the UeIdCRUDApi API.
# Interfaces
LocationApiRouter defines the required methods for binding the api requests to a responses for the LocationApi The LocationApiRouter implementation should parse necessary information from the http request, pass the data to a LocationApiServicer to perform the required actions, then write the service results to the http response.
LocationApiServicer defines the api actions for the LocationApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
RecordCRUDApiRouter defines the required methods for binding the api requests to a responses for the RecordCRUDApi The RecordCRUDApiRouter implementation should parse necessary information from the http request, pass the data to a RecordCRUDApiServicer to perform the required actions, then write the service results to the http response.
RecordCRUDApiServicer defines the api actions for the RecordCRUDApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can 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.
SubscriberApiRouter defines the required methods for binding the api requests to a responses for the SubscriberApi The SubscriberApiRouter implementation should parse necessary information from the http request, pass the data to a SubscriberApiServicer to perform the required actions, then write the service results to the http response.
SubscriberApiServicer defines the api actions for the SubscriberApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
UeIdCRUDApiRouter defines the required methods for binding the api requests to a responses for the UeIdCRUDApi The UeIdCRUDApiRouter implementation should parse necessary information from the http request, pass the data to a UeIdCRUDApiServicer to perform the required actions, then write the service results to the http response.
UeIdCRUDApiServicer defines the api actions for the UeIdCRUDApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
# Type aliases
ErrorHandler defines the required method for handling error.
LocationApiOption for how the controller is set up.
RecordCRUDApiOption for how the controller is set up.
Routes are a collection of defined api endpoints.
SubscriberApiOption for how the controller is set up.
UeIdCRUDApiOption for how the controller is set up.