package
0.0.0-20241217064511-187ce2810470
Repository: https://github.com/playhubstudio/public-api.git
Documentation: pkg.go.dev
# Functions
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewPostBalanceRequest calls the generic PostBalance builder with application/json body.
NewPostBalanceRequestWithBody generates requests for PostBalance with any type of body.
NewPostBetRequest calls the generic PostBet builder with application/json body.
NewPostBetRequestWithBody generates requests for PostBet with any type of body.
NewPostRefundRequest calls the generic PostRefund builder with application/json body.
NewPostRefundRequestWithBody generates requests for PostRefund with any type of body.
NewPostWinRequest calls the generic PostWin builder with application/json body.
NewPostWinRequestWithBody generates requests for PostWin with any type of body.
ParsePostBalanceResponse parses an HTTP response from a PostBalanceWithResponse call.
ParsePostBetResponse parses an HTTP response from a PostBetWithResponse call.
ParsePostRefundResponse parses an HTTP response from a PostRefundWithResponse call.
ParsePostWinResponse parses an HTTP response from a PostWinWithResponse 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
Defines values for BalanceRequestAction.
Defines values for BetRequestAction.
Defines values for BetRequestType.
Defines values for BetRequestType.
Defines values for RefundRequestAction.
Defines values for WinRequestAction.
Defines values for WinRequestType.
Defines values for WinRequestType.
# Structs
BalanceRequest defines model for BalanceRequest.
BalanceResponse defines model for BalanceResponse.
BetRequest defines model for BetRequest.
BetResponse defines model for BetResponse.
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
PostBalanceParams defines parameters for PostBalance.
No description provided by the author
PostBetParams defines parameters for PostBet.
No description provided by the author
PostRefundParams defines parameters for PostRefund.
No description provided by the author
PostWinParams defines parameters for PostWin.
No description provided by the author
RefundRequest defines model for RefundRequest.
RefundResponse defines model for RefundResponse.
WinRequest defines model for WinRequest.
WinResponse defines model for WinResponse.
# 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
BalanceRequestAction The action name.
BetRequestAction The action name.
BetRequestType The type of the bet.
ClientOption allows setting custom parameters during construction.
PostBalanceJSONRequestBody defines body for PostBalance for application/json ContentType.
PostBetJSONRequestBody defines body for PostBet for application/json ContentType.
PostRefundJSONRequestBody defines body for PostRefund for application/json ContentType.
PostWinJSONRequestBody defines body for PostWin for application/json ContentType.
RefundRequestAction The action name.
RequestEditorFn is the function signature for the RequestEditor callback function.
WinRequestAction The action name.
WinRequestType The type of the win.