# Functions
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewCreatePromiseRequest calls the generic CreatePromise builder with application/json body.
NewCreatePromiseRequestWithBody generates requests for CreatePromise with any type of body.
NewGetPromiseRequest generates requests for GetPromise.
NewMockClientInterface creates a new mock instance.
NewMockClientWithResponsesInterface creates a new mock instance.
NewMockHttpRequestDoer creates a new mock instance.
NewPatchPromisesIdRequest calls the generic PatchPromisesId builder with application/json body.
NewPatchPromisesIdRequestWithBody generates requests for PatchPromisesId with any type of body.
NewSearchPromisesRequest generates requests for SearchPromises.
ParseCreatePromiseResponse parses an HTTP response from a CreatePromiseWithResponse call.
ParseGetPromiseResponse parses an HTTP response from a GetPromiseWithResponse call.
ParsePatchPromisesIdResponse parses an HTTP response from a PatchPromisesIdWithResponse call.
ParseSearchPromisesResponse parses an HTTP response from a SearchPromisesWithResponse 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.
# Constants
Defines values for SearchPromisesParamsState.
Defines values for PromiseStateComplete.
Defines values for PromiseStateComplete.
Defines values for PromiseStateComplete.
Defines values for PromiseState.
Defines values for PromiseState.
Defines values for PromiseState.
Defines values for PromiseState.
Defines values for PromiseState.
Defines values for SearchPromisesParamsState.
Defines values for SearchPromisesParamsState.
# Structs
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
CompletePromiseReq defines model for CompletePromiseReq.
CreatePromiseParams defines parameters for CreatePromise.
CreatePromiseReq defines model for CreatePromiseReq.
No description provided by the author
GetPromiseParams defines parameters for GetPromise.
No description provided by the author
MockClientInterface is a mock of ClientInterface interface.
MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.
MockClientWithResponsesInterface is a mock of ClientWithResponsesInterface interface.
MockClientWithResponsesInterfaceMockRecorder is the mock recorder for MockClientWithResponsesInterface.
MockHttpRequestDoer is a mock of HttpRequestDoer interface.
MockHttpRequestDoerMockRecorder is the mock recorder for MockHttpRequestDoer.
PatchPromisesIdParams defines parameters for PatchPromisesId.
No description provided by the author
Promise defines model for Promise.
PromiseValue defines model for PromiseValue.
SearchPromisesParams defines parameters for SearchPromises.
SearchPromisesResp defines model for SearchPromisesResp.
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.
CreatePromiseJSONRequestBody defines body for CreatePromise for application/json ContentType.
IdempotencyKeyHeader defines model for IdempotencyKeyHeader.
IdPath defines model for IdPath.
PatchPromisesIdJSONRequestBody defines body for PatchPromisesId for application/json ContentType.
PromiseState defines model for PromiseState.
PromiseStateComplete defines model for PromiseStateComplete.
RequestEditorFn is the function signature for the RequestEditor callback function.
RequestIdHeader defines model for RequestIdHeader.
SearchPromisesParamsState defines parameters for SearchPromises.
StrictHeader defines model for StrictHeader.