share

package
v0.0.0-...-e6f38c9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// database
	ErrUpdateNoneOrMany = errors.New("error in quantity of rows affected")
	ErrDatabase         = errors.New("error database")
	ErrDuplicate        = errors.New("error duplicate")
	ErrOrderNotCreated  = errors.New("purchase not created, please try again")
	// rest
	ErrTimeout     = errors.New("error timeout")
	ErrContentType = errors.New("content-type error")
	ErrValidation  = errors.New("validation error")
)

internal infra errors

Functions

This section is empty.

Types

type ClientError

type ClientError struct {
	Domain      string
	Module      string
	Err         string
	Description string
}

func (ClientError) Error

func (err ClientError) Error() string

type DomainError

type DomainError struct {
	Domain      string
	Module      string
	Err         string
	Description string
}

func (DomainError) Error

func (err DomainError) Error() string

type ValidationResponse

type ValidationResponse struct {
	FailedField string
	Tag         string
	Value       string
}

func ValidateStruct

func ValidateStruct(o interface{}) []*ValidationResponse

Jump to

Keyboard shortcuts

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