Documentation ¶
Index ¶
- Constants
- type InventoryApp
- type InventoryHandler
- func (h *InventoryHandler) CheckAvailability(w http.ResponseWriter, r *http.Request)
- func (h *InventoryHandler) CreateInventory(w http.ResponseWriter, r *http.Request)
- func (h *InventoryHandler) DecrementInventory(w http.ResponseWriter, r *http.Request)
- func (h *InventoryHandler) GetInventory(w http.ResponseWriter, r *http.Request)
- func (h *InventoryHandler) IncrementInventory(w http.ResponseWriter, r *http.Request)
- func (h *InventoryHandler) MiddlewareValidateInventory(next http.Handler) http.Handler
Constants ¶
View Source
const InvCTXKey contextKey = "inventory_payload"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryApp ¶
type InventoryApp struct {
// contains filtered or unexported fields
}
func NewInventoryApp ¶
func NewInventoryApp(s *service.InventoryService, c *config.InventoryConfig, log *zerolog.Logger) *InventoryApp
type InventoryHandler ¶
type InventoryHandler struct {
// contains filtered or unexported fields
}
func NewInventoryHandler ¶
func NewInventoryHandler(s *service.InventoryService, l *zerolog.Logger) *InventoryHandler
func (*InventoryHandler) CheckAvailability ¶
func (h *InventoryHandler) CheckAvailability(w http.ResponseWriter, r *http.Request)
func (*InventoryHandler) CreateInventory ¶
func (h *InventoryHandler) CreateInventory(w http.ResponseWriter, r *http.Request)
func (*InventoryHandler) DecrementInventory ¶
func (h *InventoryHandler) DecrementInventory(w http.ResponseWriter, r *http.Request)
func (*InventoryHandler) GetInventory ¶
func (h *InventoryHandler) GetInventory(w http.ResponseWriter, r *http.Request)
func (*InventoryHandler) IncrementInventory ¶
func (h *InventoryHandler) IncrementInventory(w http.ResponseWriter, r *http.Request)
func (*InventoryHandler) MiddlewareValidateInventory ¶
func (h *InventoryHandler) MiddlewareValidateInventory(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.