helper

package
v0.0.0-...-77ca5db Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound          = fmt.Errorf("data not found")
	ErrDuplicateEntry    = fmt.Errorf("duplicate entry on email")
	ErrDatabase          = fmt.Errorf("database error")
	ErrBadRequest        = fmt.Errorf("bad request")
	ErrPasswordIncorrect = fmt.Errorf("password incorrect")
	ErrBlocked           = fmt.Errorf("user blocked")
)
View Source
var Validate = validator.New()

Functions

This section is empty.

Types

type ErrorStruct

type ErrorStruct struct {
	Err  error
	Code int
}

func CheckError

func CheckError(err error) *ErrorStruct

Jump to

Keyboard shortcuts

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