package
0.0.0-20241212015013-084390acc9aa
Repository: https://github.com/taguchi-w/example-oapi-codegen.git
Documentation: pkg.go.dev

# Functions

GetSwagger returns the Swagger specification corresponding to the generated code in this file.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewDeleteTodoRequest generates requests for DeleteTodo.
NewGetTodosRequest generates requests for GetTodos.
NewPostTodosRequest calls the generic PostTodos builder with application/json body.
NewPostTodosRequestWithBody generates requests for PostTodos with any type of body.
NewUpdateTodoPartialRequest calls the generic UpdateTodoPartial builder with application/json body.
NewUpdateTodoPartialRequestWithBody generates requests for UpdateTodoPartial with any type of body.
ParseDeleteTodoResponse parses an HTTP response from a DeleteTodoWithResponse call.
ParseGetTodosResponse parses an HTTP response from a GetTodosWithResponse call.
ParsePostTodosResponse parses an HTTP response from a PostTodosWithResponse call.
ParseUpdateTodoPartialResponse parses an HTTP response from a UpdateTodoPartialWithResponse call.
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
RegisterHandlers adds each server route to the EchoRouter.
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.

# Structs

Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
No description provided by the author
No description provided by the author
No description provided by the author
ServerInterfaceWrapper converts echo contexts to parameters.
Todo defines model for Todo.
UpdateTodoPartialJSONBody defines parameters for UpdateTodoPartial.
No description provided by the author

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration.
Doer performs HTTP requests.
ServerInterface represents all server handlers.

# Type aliases

ClientOption allows setting custom parameters during construction.
PostTodosJSONRequestBody defines body for PostTodos for application/json ContentType.
RequestEditorFn is the function signature for the RequestEditor callback function.
UpdateTodoPartialJSONRequestBody defines body for UpdateTodoPartial for application/json ContentType.