Documentation ¶
Index ¶
- func AddCommentHandler(w http.ResponseWriter, r *http.Request)
- func AddProductHandler(w http.ResponseWriter, r *http.Request)
- func BuyHandler(w http.ResponseWriter, r *http.Request)
- func CommentHandler(w http.ResponseWriter, r *http.Request)
- func Data_info(w http.ResponseWriter, r *http.Request)
- func EditProfile(w http.ResponseWriter, r *http.Request)
- func HandlerRequest()
- func Home_page(w http.ResponseWriter, r *http.Request)
- func InsertProductHandler(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func LoginAuth(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func Profile(w http.ResponseWriter, r *http.Request)
- func Register(w http.ResponseWriter, r *http.Request)
- func RegisterAuth(w http.ResponseWriter, r *http.Request)
- func SuccessHandler(w http.ResponseWriter, r *http.Request)
- func UpdateProfile(w http.ResponseWriter, r *http.Request)
- func ValidateEditProfileForm(fname, lname, email, password string) error
- func ValidateRegistrationForm(fname, lname, email, password string) error
- func Welcome(w http.ResponseWriter, r *http.Request)
- type Commenting
- type DataInfo
- type HomePageData
- type Product
- type Rating
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommentHandler ¶
func AddCommentHandler(w http.ResponseWriter, r *http.Request)
func AddProductHandler ¶
func AddProductHandler(w http.ResponseWriter, r *http.Request)
--------Publishing---------------------------
func BuyHandler ¶
func BuyHandler(w http.ResponseWriter, r *http.Request)
func CommentHandler ¶
func CommentHandler(w http.ResponseWriter, r *http.Request)
func EditProfile ¶
func EditProfile(w http.ResponseWriter, r *http.Request)
func InsertProductHandler ¶
func InsertProductHandler(w http.ResponseWriter, r *http.Request)
func Login ¶
func Login(w http.ResponseWriter, r *http.Request)
---------------Login----------------------------------
func LoginAuth ¶
func LoginAuth(w http.ResponseWriter, r *http.Request)
--------------Loginaut----------------------------
func Logout ¶
func Logout(w http.ResponseWriter, r *http.Request)
-------------Logout-------------------------
func RegisterAuth ¶
func RegisterAuth(w http.ResponseWriter, r *http.Request)
------------RegisterAuth------------------------
func SuccessHandler ¶
func SuccessHandler(w http.ResponseWriter, r *http.Request)
func UpdateProfile ¶
func UpdateProfile(w http.ResponseWriter, r *http.Request)
func ValidateEditProfileForm ¶
Types ¶
type Commenting ¶
--------Comment---------------------------
type DataInfo ¶
type DataInfo struct { Users []User Products []Product Commenting []Commenting }
--------DataInfo-------------------
type HomePageData ¶
Click to show internal directories.
Click to hide internal directories.