package
0.0.0-20241226104941-7124079c1b95
Repository: https://github.com/ibiscum/go-oas-examples.git
Documentation: pkg.go.dev

# Functions

GetSwagger returns the Swagger specification corresponding to the generated code in this file.
Handler creates http.Handler with routing matching OpenAPI spec.
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
No description provided by the author
HandlerWithOptions creates http.Handler with additional options.
NewAddThingRequest calls the generic AddThing builder with application/json body.
NewAddThingRequestWithBody generates requests for AddThing with any type of body.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewListThingsRequest generates requests for ListThings.
ParseAddThingResponse parses an HTTP response from a AddThingWithResponse call.
ParseListThingsResponse parses an HTTP response from a ListThingsWithResponse call.
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
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.

# Constants

No description provided by the author

# Structs

No description provided by the author
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
Error defines model for Error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServerInterfaceWrapper converts contexts to parameters.
No description provided by the author
Thing defines model for Thing.
ThingWithID defines model for ThingWithID.
No description provided by the author
No description provided by the author
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.
Doer performs HTTP requests.
ServerInterface represents all server handlers.

# Type aliases

AddThingJSONRequestBody defines body for AddThing for application/json ContentType.
ClientOption allows setting custom parameters during construction.
No description provided by the author
RequestEditorFn is the function signature for the RequestEditor callback function.