uerrors

package
v0.0.0-...-c380036 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound          = errors.New("user not found")
	ErrGetOnlineUsers        = errors.New("error with getting online users")
	ErrRevokeToken           = errors.New("error with revoke token")
	ErrEmptyUsername         = errors.New("username can't be empty")
	ErrCreateUser            = errors.New("error with creating user due a database issue")
	ErrCreateMessage         = errors.New("error with creating message due a database issue")
	ErrFindOneUser           = errors.New("error with finding user")
	ErrCheckUserPasswordHash = errors.New("error with using wrong password")
	ErrFindUserByUIID        = errors.New("error with finding user by UIID")
	ErrCreateJWTToken        = errors.New("error with creation of JWT token of user")
	ErrEmptyUserKey          = errors.New("error with user empty key")
	ErrUserUpdateKey         = errors.New("error with user's updating key")
)

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL