package
0.0.0-20210517024441-51c678fc1e6f
Repository: https://github.com/tclemos/go-web-service-example.git
Documentation: pkg.go.dev

# Functions

Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewCreateThingRequest calls the generic CreateThing builder with application/json body.
NewCreateThingRequestWithBody generates requests for CreateThing with any type of body.
NewDeleteThingRequest generates requests for DeleteThing.
NewGetAllThingsRequest generates requests for GetAllThings.
NewGetThingRequest generates requests for GetThing.
NewPingRequest generates requests for Ping.
NewUpdateThingRequest calls the generic UpdateThing builder with application/json body.
NewUpdateThingRequestWithBody generates requests for UpdateThing with any type of body.
ParseCreateThingResponse parses an HTTP response from a CreateThingWithResponse call.
ParseDeleteThingResponse parses an HTTP response from a DeleteThingWithResponse call.
ParseGetAllThingsResponse parses an HTTP response from a GetAllThingsWithResponse call.
ParseGetThingResponse parses an HTTP response from a GetThingWithResponse call.
ParsePingResponse parses an HTTP response from a PingWithResponse call.
ParseUpdateThingResponse parses an HTTP response from a UpdateThingWithResponse call.
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
Error defines model for error.
GetAllThingsParams defines parameters for GetAllThings.
No description provided by the author
No description provided by the author
No description provided by the author
Thing defines model for thing.
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.

# Type aliases

ClientOption allows setting custom parameters during construction.
Code defines model for code.
CreateThingJSONBody defines parameters for CreateThing.
CreateThingJSONRequestBody defines body for CreateThing for application/json ContentType.
N400 defines model for 400.
PageNumber defines model for pageNumber.
PageSize defines model for pageSize.
RequestEditorFn is the function signature for the RequestEditor callback function.
UpdateThingJSONBody defines parameters for UpdateThing.
UpdateThingJSONRequestBody defines body for UpdateThing for application/json ContentType.