Documentation ¶
Index ¶
- func Initialize(productHandler *ProductHandler, healthCheckHandler *HealthCheckHandler) http.Handler
- type HealthCheckHandler
- type ProductHandler
- func (c *ProductHandler) AddProduct(w http.ResponseWriter, r *http.Request)
- func (c *ProductHandler) GetProductByID(w http.ResponseWriter, r *http.Request)
- func (c *ProductHandler) GetProducts(w http.ResponseWriter, r *http.Request)
- func (c *ProductHandler) RemoveProduct(w http.ResponseWriter, r *http.Request)
- func (c *ProductHandler) UpdateProduct(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(productHandler *ProductHandler, healthCheckHandler *HealthCheckHandler) http.Handler
Initialize ..
Types ¶
type HealthCheckHandler ¶
HealthCheckHandler ..
func NewHealthCheckHandler ¶
func NewHealthCheckHandler(dbConn *sql.DB) *HealthCheckHandler
NewHealthCheckHandler ..
func (*HealthCheckHandler) GetHealthCheckHandler ¶
func (h *HealthCheckHandler) GetHealthCheckHandler(w http.ResponseWriter, r *http.Request)
GetHealthCheckHandler ..
type ProductHandler ¶
ProductHandler ..
func NewProductHandler ¶
func NewProductHandler(service product.Service) *ProductHandler
NewProductHandler ..
func (*ProductHandler) AddProduct ¶
func (c *ProductHandler) AddProduct(w http.ResponseWriter, r *http.Request)
AddProductItem ..
func (*ProductHandler) GetProductByID ¶
func (c *ProductHandler) GetProductByID(w http.ResponseWriter, r *http.Request)
GetProductItemByID ..
func (*ProductHandler) GetProducts ¶
func (c *ProductHandler) GetProducts(w http.ResponseWriter, r *http.Request)
GetProductItems ..
func (*ProductHandler) RemoveProduct ¶
func (c *ProductHandler) RemoveProduct(w http.ResponseWriter, r *http.Request)
RemoveProductItem ..
func (*ProductHandler) UpdateProduct ¶
func (c *ProductHandler) UpdateProduct(w http.ResponseWriter, r *http.Request)
UpdateProductItem ..
Click to show internal directories.
Click to hide internal directories.