# Functions
FromConsentRecord converts the DB type to api type.
FromPatientConsent converts a pkg.PatientConsent to a PatientConsent.
FromPatientConsent converts a slice of pkg.PatientConsent to a slice of api.PatientConsent.
NewCheckConsentRequest calls the generic CheckConsent builder with application/json body.
NewCheckConsentRequestWithBody generates requests for CheckConsent with any type of body.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewCreateConsentRequest calls the generic CreateConsent builder with application/json body.
NewCreateConsentRequestWithBody generates requests for CreateConsent with any type of body.
NewDeleteConsentRequest generates requests for DeleteConsent.
NewFindConsentRecordRequest generates requests for FindConsentRecord.
NewQueryConsentRequest calls the generic QueryConsent builder with application/json body.
NewQueryConsentRequestWithBody generates requests for QueryConsent with any type of body.
ParseCheckConsentResponse parses an HTTP response from a CheckConsentWithResponse call.
ParseCreateConsentResponse parses an HTTP response from a CreateConsentWithResponse call.
ParseDeleteConsentResponse parses an HTTP response from a DeleteConsentWithResponse call.
ParseFindConsentRecordResponse parses an HTTP response from a FindConsentRecordWithResponse call.
ParseQueryConsentResponse parses an HTTP response from a QueryConsentWithResponse call.
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.
# Variables
ErrorMissingHash is returned when the consentRecordHash parameter is missing.
# 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.
ConsentCheckRequest defines model for ConsentCheckRequest.
ConsentCheckResponse defines model for ConsentCheckResponse.
ConsentQueryRequest defines model for ConsentQueryRequest.
ConsentQueryResponse defines model for ConsentQueryResponse.
ConsentRecord defines model for ConsentRecord.
No description provided by the author
No description provided by the author
FindConsentRecordParams defines parameters for FindConsentRecord.
No description provided by the author
HttpClient holds the server address and other basic settings for the http client.
PageDefinition defines model for PageDefinition.
PatientConsent defines model for PatientConsent.
No description provided by the author
ServerInterfaceWrapper converts echo contexts to parameters.
Wrapper implements the ServerInterface for the base ConsentStore.
# 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
CheckConsentJSONBody defines parameters for CheckConsent.
CheckConsentRequestBody defines body for CheckConsent for application/json ContentType.
ClientOption allows setting custom parameters during construction.
CreateConsentJSONBody defines parameters for CreateConsent.
CreateConsentRequestBody defines body for CreateConsent for application/json ContentType.
Identifier defines model for Identifier.
QueryConsentJSONBody defines parameters for QueryConsent.
QueryConsentRequestBody defines body for QueryConsent for application/json ContentType.
RequestEditorFn is the function signature for the RequestEditor callback function.
ValidFrom defines model for ValidFrom.
ValidTo defines model for ValidTo.