Documentation ¶
Index ¶
- func NewApi(cfg utils.Config, mux *http.ServeMux, domain domain.Domain, ...) *jsonApi
- type Api
- type DeleteAccountRequest
- type DeleteAccountResponse
- type Error
- type ErrorResponse
- type ForgetPasswordRequest
- type ForgetPasswordResponse
- type LogInRequest
- type LogInResponse
- type SessionResponse
- type SignUpRequest
- type SignUpResponse
- type VerifyAccountRequest
- type VerifyAccountResponse
- type VerifyPasswordResetRequest
- type VerifyPasswordResetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeleteAccountRequest ¶
type DeleteAccountResponse ¶
type DeleteAccountResponse struct {
Success bool `json:"success"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type ForgetPasswordRequest ¶
type ForgetPasswordResponse ¶
type LogInRequest ¶
type LogInResponse ¶
type SessionResponse ¶
type SignUpRequest ¶
type SignUpResponse ¶
type VerifyAccountRequest ¶
type VerifyAccountRequest struct {
Token string `json:"token"`
}
type VerifyAccountResponse ¶
type VerifyAccountResponse struct {
Verified bool `json:"verified"`
}
type VerifyPasswordResetResponse ¶
type VerifyPasswordResetResponse struct {
Success bool `json:"success"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.