Documentation ¶
Index ¶
- type Details
- type Model
- func (dExec *Model) AddImage(name, url string, productID int64) error
- func (dbExec Model) CheckSession(w http.ResponseWriter, r *http.Request) (*bool, error)
- func (dExec *Model) CreateProduct(name, category string, price float64, description string, other interface{}, ...) (*int, error)
- func (dbExec *Model) CreateSession(w http.ResponseWriter, r *http.Request, user string) error
- func (dbExec *Model) CreateUser(...) error
- func (dExec *Model) DeleteProduct(id int64) error
- func (dExec *Model) DeleteProfile(userName string) (*string, error)
- func (dbExec *Model) DeleteSession(w http.ResponseWriter, r *http.Request) error
- func (dbExec *Model) EmailExists(email string) error
- func (dExec *Model) ExpiredToken(username string) error
- func (dbExec *Model) GetByEmail(email string) (*userDetails, error)
- func (dbExec *Model) GetByUsername(username string) (*userDetails, error)
- func (dbExec *Model) GetEmail(email string) (*string, error)
- func (dbExec *Model) GetSalt(username string) (*string, error)
- func (dExec *Model) GetToken(username string) (string, error)
- func (dbExec *Model) GetUserFromSession(w http.ResponseWriter, r *http.Request) (*string, error)
- func (dExec *Model) Getprt(username string) (*prToken, error)
- func (dExec *Model) IsVerify(email string) (*bool, error)
- func (dExec *Model) ListProducts() (interface{}, error)
- func (dExec *Model) ListProductsByCategory(category string) (interface{}, error)
- func (dExec *Model) ReadProduct(id int64) (*Products, error)
- func (dExec *Model) ReadProfile(userName string) (*Profile, error)
- func (dExec *Model) ResetPassword(token string, prtExpired bool, email string) error
- func (dExec *Model) Setprt(prtExpired bool, username, password string) error
- func (dExec *Model) TokenExpired(username string) (*bool, error)
- func (dExec *Model) UpdatePassword(hashPassword, username string) error
- func (dExec *Model) UpdateProduct(name, category string, price float64, description string, other interface{}, ...) error
- func (dExec *Model) UpdateProfile(firstName, lastName, phone, address string, usr string) (*string, error)
- func (dbExec *Model) UserExists(username string) error
- func (dExec *Model) VerifyEmail(username string) error
- type Products
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (Model) CheckSession ¶
func (*Model) CreateProduct ¶
func (*Model) CreateSession ¶
func (*Model) CreateUser ¶
func (*Model) DeleteProduct ¶
func (*Model) DeleteSession ¶
func (*Model) EmailExists ¶
func (*Model) ExpiredToken ¶
func (*Model) GetByEmail ¶
func (*Model) GetByUsername ¶
func (*Model) GetUserFromSession ¶
func (*Model) ListProducts ¶
func (*Model) ListProductsByCategory ¶
func (*Model) ResetPassword ¶
func (*Model) UpdatePassword ¶
func (*Model) UpdateProduct ¶
func (*Model) UpdateProfile ¶
func (*Model) UserExists ¶
func (*Model) VerifyEmail ¶
Click to show internal directories.
Click to hide internal directories.