package
0.0.0-20210426105106-098cde10e9b5
Repository: https://github.com/nguyenhoaiphuong/go-web-dev.git
Documentation: pkg.go.dev

# Functions

NewErrors returns a slice of errors.

# Constants

ErrCodeAddressExisted : error message user address is existed.
ErrCodeAddressSaveFail : user address save fail.
ErrCodeEmailAlreadyExists : email already exists.
ErrCodeEmailNotExists : email doesn't exist.
ErrCodeInvalidCredentials : invalid credentials.
ErrCodeInvalidEmail : invalid email.
ErrCodeInvalidName : invalid name.
ErrCodeInvalidPassword : invalid password.
*********** Mongodb error ************/ ErrCodeMongoConnection : mongodb connection error.
ErrCodeMongoCreate : mongodb create model error.
ErrCodeMongoDelete : mongodb delete model error.
ErrCodeMongoRead : mongodb read model error.
ErrCodeMongoUpdate : mongodb update model error.
ErrCodePasswordMismatch : password and confirm password must match.
ErrCodeUpdateUser : cannot update user profile.
ErrMsgAddressExisted : error message user address is existed.
ErrMsgAddressSaveFail : user address save fail.
ErrMsgEmailAlreadyExists : error message email already exists.
ErrMsgEmailNotExists : error message email doesn't exist.
ErrMsgInvalidCredentials : error message invalid credentials.
ErrMsgInvalidEmail : error message invalid email.
ErrMsgInvalidName : error message invalid name.
ErrMsgInvalidPassword : error message invalid password.
ErrMsgPasswordMismatch : perror message assword and confirm password must match.
ErrMsgUpdateUser : error message cannot update user profile.

# Structs

Error struct.

# Type aliases

No description provided by the author
Errors : slice of Error.