Documentation ¶
Index ¶
- Variables
- func BadRequest(w http.ResponseWriter, r *http.Request)
- func DatabaseConnection(host, port, user, dbname, password, sslmode string) (*sql.DB, error)
- func GeneralStatus(w http.ResponseWriter, r *http.Request, code int)
- func InternalServerError(w http.ResponseWriter, r *http.Request)
- func IsEmpty(username, email, firstName, lastName, password, phoneNumber string) error
- func LoggerFile() (*os.File, error)
- func MethodNotAllowed(w http.ResponseWriter, r *http.Request)
- func NewMail(receiver, subject, message, username, token string) error
- func Notfound(w http.ResponseWriter, r *http.Request)
- func ProductEmpty(name, category string, price float64, description string) error
- func RediStore(size int, network string, host string, port string, password string, ...) (*redistore.RediStore, error)
- func StatusOk(w http.ResponseWriter, r *http.Request)
- func UnAuthorized(w http.ResponseWriter, r *http.Request)
- func ValidateEmail(email string) (*string, error)
- func ValidateFirstName(firstName string) (*string, error)
- func ValidateLastName(lastName string) (*string, error)
- func ValidatePassword(password string) (*string, error)
- func ValidatePhone(phone string) (*string, error)
- func ValidateUsername(username string) (*string, error)
- type Logger
- type Mail
Constants ¶
This section is empty.
Variables ¶
View Source
var ForgetMessage = `` /* 591-byte string literal not displayed */
View Source
var VerifyMessage = `` /* 578-byte string literal not displayed */
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter, r *http.Request)
func DatabaseConnection ¶
func GeneralStatus ¶
func GeneralStatus(w http.ResponseWriter, r *http.Request, code int)
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter, r *http.Request)
func LoggerFile ¶
func MethodNotAllowed ¶
func MethodNotAllowed(w http.ResponseWriter, r *http.Request)
func ProductEmpty ¶
func UnAuthorized ¶
func UnAuthorized(w http.ResponseWriter, r *http.Request)
func ValidateEmail ¶
func ValidateFirstName ¶
func ValidateLastName ¶
func ValidatePassword ¶
func ValidatePhone ¶
func ValidateUsername ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.