Documentation
¶
Index ¶
- type AlreadyVerifiedResponse
- type Authenticate
- type DBErrorResponse
- type DataBodyResponse
- type IncorrectCurrentPasswordResponse
- type LinkExpireResponse
- type LinkRequest
- type LoginSignUpOkResponse
- type NewPasswordEqualResponse
- type PasswordIncorrectResponsse
- type PasswordOkResponse
- type PasswordRequest
- type ShortLinkDBErrorResponse
- type ShortLinkExistsResponse
- type ShortLinkNotExistsResponse
- type ShortLinkOkResponse
- type ShortLinkValidateResponse
- type User404Responsse
- type UserExistResponse
- type VerifyOKResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlreadyVerifiedResponse ¶
type AlreadyVerifiedResponse struct {
Response string `json:"response" example:"user already verified"`
}
type Authenticate ¶
type DBErrorResponse ¶
type DBErrorResponse struct {
Response string `json:"response" example:"failed to save data to db"`
}
type DataBodyResponse ¶
type DataBodyResponse struct {
Response string `json:"response" example:"body properties required"`
}
type IncorrectCurrentPasswordResponse ¶
type IncorrectCurrentPasswordResponse struct {
Response string `json:"response" example:"current password is incorrect"`
}
type LinkExpireResponse ¶
type LinkExpireResponse struct {
Response string `json:"response" example:"link is invalid or expired"`
}
type LinkRequest ¶
type LoginSignUpOkResponse ¶
type LoginSignUpOkResponse struct {
Response string `` /* 242-byte string literal not displayed */
}
type NewPasswordEqualResponse ¶
type NewPasswordEqualResponse struct {
Response string `json:"response" example:"new passwords must be equal"`
}
type PasswordIncorrectResponsse ¶
type PasswordIncorrectResponsse struct {
Response string `json:"response" example:"password is incorrect"`
}
type PasswordOkResponse ¶
type PasswordOkResponse struct {
Response string `json:"response" example:"password changed successfully"`
}
type PasswordRequest ¶
type ShortLinkDBErrorResponse ¶
type ShortLinkDBErrorResponse struct {
Response string `json:"response" example:"cant short long url"`
}
type ShortLinkExistsResponse ¶
type ShortLinkExistsResponse struct {
Response string `json:"response" example:"url already exists"`
}
type ShortLinkNotExistsResponse ¶
type ShortLinkNotExistsResponse struct {
Response string `json:"response" example:"url not found"`
}
type ShortLinkOkResponse ¶
type ShortLinkOkResponse struct {
Response string `json:"response" example:"http://domain/yjMl1vl"`
}
type ShortLinkValidateResponse ¶
type ShortLinkValidateResponse struct {
Response string `json:"response" example:"url is invalid"`
}
type User404Responsse ¶
type User404Responsse struct {
Response string `json:"response" example:"user not found"`
}
type UserExistResponse ¶
type UserExistResponse struct {
Response string `json:"response" example:"user with this email already exists"`
}
type VerifyOKResponse ¶
type VerifyOKResponse struct {
Response string `json:"response" example:"user verified successfully"`
}
Click to show internal directories.
Click to hide internal directories.