Documentation ¶
Index ¶
- type Err
- func ErrBadRequest(err error) *Err
- func ErrInternalServerError(err error) *Err
- func ErrInvalidInput(fieldName string, fieldValue any) *Err
- func ErrJWTUnverified(err error) *Err
- func ErrNotFound(resourceName, fieldName string, fieldValue any) *Err
- func ErrPermissionDenied(err error) *Err
- func ErrWrongCredentials(err error) *Err
- type LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶
type Err struct { ErrorCode int `json:"error_code,omitempty"` // application-specific error code ErrorMsg string `json:"error"` // user-facing error message // contains filtered or unexported fields }
func ErrBadRequest ¶
func ErrInternalServerError ¶
func ErrInvalidInput ¶
func ErrJWTUnverified ¶
func ErrNotFound ¶
func ErrPermissionDenied ¶
func ErrWrongCredentials ¶
type LoginResponse ¶
Click to show internal directories.
Click to hide internal directories.