Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddItemPayload ¶
type IAuthRestAPI ¶
type IAuthRestAPI interface { VerifyLogin(w http.ResponseWriter, r *http.Request) RegisterUser(w http.ResponseWriter, r *http.Request) Register() http.Handler }
IAuthRestAPI user controller interface RegisterUser -> the register user request handler VerifyLogin -> this is the one handling login request
type ICartRestAPI ¶
type ICartRestAPI interface { GetCart(w http.ResponseWriter, r *http.Request) GetCarts(w http.ResponseWriter, r *http.Request) SaveCart(w http.ResponseWriter, r *http.Request) AddItemToCart(w http.ResponseWriter, r *http.Request) RemoveItemFromCart(w http.ResponseWriter, r *http.Request) Checkout(w http.ResponseWriter, r *http.Request) //HideItem(w http.ResponseWriter, r *http.Request) Register() http.Handler }
func NewCart ¶
func NewCart(token *jwtauth.JWTAuth, transactionChannel chan<- model.Transaction) ICartRestAPI
type IItemRestAPI ¶
type IItemRestAPI interface { GetItem(w http.ResponseWriter, r *http.Request) GetItems(w http.ResponseWriter, r *http.Request) SaveItem(w http.ResponseWriter, r *http.Request) HideItem(w http.ResponseWriter, r *http.Request) Register() http.Handler }
func NewItem ¶
func NewItem(token *jwtauth.JWTAuth) IItemRestAPI
Click to show internal directories.
Click to hide internal directories.