Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Token UnExpectedError = "Expected error" ClaimsNotFound = "Claims not found" TokenRequired = "token required" TokenExpired = "token expired" TokenInvalid = "token invalid" // OTP OptExists = "Otp exists" OtpUsed = "Otp used" OtpNotValid = "Otp invalid" // User EmailExists = "Email exists" UsernameExists = "Username exists" PermissionDenied = "Permission denied" // DB RecordNotFound = "record not found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceError ¶
type ServiceError struct { EndUserMessage string `json:"endUserMessage"` TechnicalMessage string `json:"technicalMessage"` Err error }
func (*ServiceError) Error ¶
func (s *ServiceError) Error() string
Click to show internal directories.
Click to hide internal directories.