Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthEmailRequired = fmt.Errorf("email is required") ErrAuthPasswordRequired = fmt.Errorf("password is required") ErrAuthAddressRequired = fmt.Errorf("address is required") ErrAuthVerificationCodeNotCorrectFormat = fmt.Errorf("verification code is not in correct format") ErrCookieValueTooLong = fmt.Errorf("cookie value too long") ErrCookieInvalidValue = fmt.Errorf("invalid cookie value") )
View Source
var ( ErrCartItemCreation = fmt.Errorf("internal server error, failed to create a cart item") ErrCartDoesNotExist = fmt.Errorf("internal server error, cart does not exist") )
View Source
var ( ErrNameIsRequired = fmt.Errorf("name is required") ErrImageIsRequired = fmt.Errorf("image url is required") ErrPriceShouldBePositiveNumber = fmt.Errorf("price should be positive number") ErrNotValidUUID = fmt.Errorf("not valid uuid") ErrImageNotFound = fmt.Errorf("image not found") ErrDatabaseTransactionFailed = fmt.Errorf("database transaction failed") ErrNotOwnAccount = fmt.Errorf("not own account") ErrNotValidCookie = fmt.Errorf("not valid cookie") )
View Source
var ( ErrOrderCreation = fmt.Errorf("internal server error, failed to create a order") ErrOrderNotFound = fmt.Errorf("order not found") )
View Source
var ( ErrPizzasAlreadyExists = fmt.Errorf("pizza with this name already exists") ErrPizzaCreation = fmt.Errorf("internal server error, failed to create a pizza") ErrPizzaNotFound = fmt.Errorf("pizza not found") ErrPizzaFailedToLoad = fmt.Errorf("pizza failed to load") ErrPizzaUpdating = fmt.Errorf("internal server error, failed to update a pizza") ErrPizzaDeletion = fmt.Errorf("internal server error, failed to delete a pizza") )
View Source
var ( ErrSaladsAlreadyExists = fmt.Errorf("salad with this name already exists") ErrSaladCreation = fmt.Errorf("internal server error, failed to create a salad") ErrSaladNotFound = fmt.Errorf("salad not found") ErrSaladFailedToLoad = fmt.Errorf("salad failed to load") ErrSaladUpdating = fmt.Errorf("internal server error, failed to update a salad") ErrSaladDeletion = fmt.Errorf("internal server error, failed to delete a salad") )
View Source
var ( ErrUserAlreadyExists = fmt.Errorf("user with this name already exists") ErrUserCreation = fmt.Errorf("internal server error, failed to create a user") ErrUserConfirmation = fmt.Errorf("internal server error, failed to confirm a user") ErrUserNotFound = fmt.Errorf("user not found") )
View Source
var (
ErrLoadingPaymentMetadata = fmt.Errorf("failed to load payments metadata")
)
Functions ¶
func AddToast ¶
func AddToast(w http.ResponseWriter, t Toast)
func GetAWSError ¶
Types ¶
type Toast ¶
func ErrorFailedRender ¶
func ErrorFailedRender() Toast
func ErrorNotFound ¶
func ErrorStatusForbidden ¶
func ErrorStatusUnauthorized ¶
Click to show internal directories.
Click to hide internal directories.