Documentation ¶
Index ¶
- func GetCategoryItems(w http.ResponseWriter, r *http.Request)
- func GetDepartmentCategories(w http.ResponseWriter, r *http.Request)
- func GetDepartments(w http.ResponseWriter, r *http.Request)
- func GetItem(w http.ResponseWriter, r *http.Request)
- func IsAuthorized(next http.Handler) http.Handler
- func Login(w http.ResponseWriter, req *http.Request)
- func Logout(w http.ResponseWriter, req *http.Request)
- func ProtectedEndpoint(w http.ResponseWriter, req *http.Request)
- func ServeFileHandler(res http.ResponseWriter, req *http.Request)
- func Signup(w http.ResponseWriter, req *http.Request)
- func TestEndpoint(w http.ResponseWriter, req *http.Request)
- func VerifyUser(usr User) (*user.User, error)
- type ErrorResponse
- type Exception
- type Item
- type JwtToken
- type Response
- type Store
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCategoryItems ¶
func GetCategoryItems(w http.ResponseWriter, r *http.Request)
func GetDepartmentCategories ¶
func GetDepartmentCategories(w http.ResponseWriter, r *http.Request)
func GetDepartments ¶
func GetDepartments(w http.ResponseWriter, r *http.Request)
func ProtectedEndpoint ¶
func ProtectedEndpoint(w http.ResponseWriter, req *http.Request)
func ServeFileHandler ¶
func ServeFileHandler(res http.ResponseWriter, req *http.Request)
func TestEndpoint ¶
func TestEndpoint(w http.ResponseWriter, req *http.Request)
Types ¶
type ErrorResponse ¶
type Item ¶
type Item struct { ID uint `json:"item_id"` Name string `json:"item_name"` StoreName string `json:"store_name"` PromoImage string `json:"default_image"` Images []string `json:"images"` Description string `json:"description"` Price float64 `json:"price"` Stock uint `json:"stock"` }
func StoreItemToAPIItem ¶
Click to show internal directories.
Click to hide internal directories.