package
0.0.0-20241017054946-457c8b9d723e
Repository: https://github.com/bmstu-itstech/itsreg-auth.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.
NewGetUserRequest generates requests for GetUser.
NewLoginUserRequest calls the generic LoginUser builder with application/json body.
NewLoginUserRequestWithBody generates requests for LoginUser with any type of body.
NewRegisterUserRequest calls the generic RegisterUser builder with application/json body.
NewRegisterUserRequestWithBody generates requests for RegisterUser with any type of body.
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call.
ParseLoginUserResponse parses an HTTP response from a LoginUserWithResponse call.
ParseRegisterUserResponse parses an HTTP response from a RegisterUserWithResponse 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
Authenticated defines model for Authenticated.
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
Error defines model for Error.
No description provided by the author
No description provided by the author
PostLogin defines model for PostLogin.
PostRegister defines model for PostRegister.
No description provided by the author
User defines model for User.
# 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.
LoginUserJSONRequestBody defines body for LoginUser for application/json ContentType.
RegisterUserJSONRequestBody defines body for RegisterUser for application/json ContentType.
RequestEditorFn is the function signature for the RequestEditor callback function.