usecases

package
v0.0.0-...-5646104 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound         = NewAppError(20001, "User not found")
	ErrUserUnauthorizeError = NewAppError(20002, "User unauthorized")
	TokenIsInvalidError     = NewAppError(20003, "Token is invalid")
	TokenGenerationError    = NewAppError(20004, "Token generation error")
)

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Code    int    `json:"Code"`
	Message string `json:"Message"`
}

func NewAppError

func NewAppError(code int, message string) *AppError

func (*AppError) Error

func (e *AppError) Error() string

func (*AppError) Errorb

func (e *AppError) Errorb() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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