package
0.0.0-20241228152709-4101898bb1da
Repository: https://github.com/sasalatart/quizory.git
Documentation: pkg.go.dev
# Functions
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.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewGetAnswersLogRequest generates requests for GetAnswersLog.
NewGetNextQuestionRequest generates requests for GetNextQuestion.
NewGetRemainingTopicsRequest generates requests for GetRemainingTopics.
NewHealthCheckRequest generates requests for HealthCheck.
NewSubmitAnswerRequest calls the generic SubmitAnswer builder with application/json body.
NewSubmitAnswerRequestWithBody generates requests for SubmitAnswer with any type of body.
ParseGetAnswersLogResponse parses an HTTP response from a GetAnswersLogWithResponse call.
ParseGetNextQuestionResponse parses an HTTP response from a GetNextQuestionWithResponse call.
ParseGetRemainingTopicsResponse parses an HTTP response from a GetRemainingTopicsWithResponse call.
ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call.
ParseSubmitAnswerResponse parses an HTTP response from a SubmitAnswerWithResponse 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
No description provided by the author
Defines values for Difficulty.
Defines values for Difficulty.
Defines values for Difficulty.
# Structs
AnswersLogItem A past attempt from a user to answer a question.
Choice defines model for Choice.
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
GetAnswersLogParams defines parameters for GetAnswersLog.
No description provided by the author
GetNextQuestionParams defines parameters for GetNextQuestion.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Question defines model for Question.
RemainingTopic defines model for RemainingTopic.
No description provided by the author
No description provided by the author
ServerInterfaceWrapper converts contexts to parameters.
No description provided by the author
SubmitAnswerRequest defines model for SubmitAnswerRequest.
No description provided by the author
SubmitAnswerResult defines model for SubmitAnswerResult.
No description provided by the author
UnansweredChoice defines model for UnansweredChoice.
UnansweredQuestion defines model for UnansweredQuestion.
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
ClientOption allows setting custom parameters during construction.
Difficulty defines model for Difficulty.
No description provided by the author
PageQueryParam defines model for PageQueryParam.
PageSizeQueryParam defines model for PageSizeQueryParam.
RequestEditorFn is the function signature for the RequestEditor callback function.
SubmitAnswerJSONRequestBody defines body for SubmitAnswer for application/json ContentType.
TopicQueryParam defines model for TopicQueryParam.
UserIdQueryParam defines model for UserIdQueryParam.
UUID defines model for UUID.