Documentation ¶
Index ¶
- type ItemController
- func (ctrl *ItemController) CreateItem(w http.ResponseWriter, r *http.Request)
- func (ctrl *ItemController) DeleteItem(w http.ResponseWriter, r *http.Request)
- func (ctrl *ItemController) GetItemByName(w http.ResponseWriter, r *http.Request)
- func (ctrl *ItemController) GetItems(w http.ResponseWriter, r *http.Request)
- func (ctrl *ItemController) UpdateItem(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemController ¶
type ItemController struct {
UseCase usecases.ItemUseCase
}
func NewItemController ¶
func NewItemController(useCase usecases.ItemUseCase) *ItemController
func (*ItemController) CreateItem ¶
func (ctrl *ItemController) CreateItem(w http.ResponseWriter, r *http.Request)
func (*ItemController) DeleteItem ¶
func (ctrl *ItemController) DeleteItem(w http.ResponseWriter, r *http.Request)
func (*ItemController) GetItemByName ¶
func (ctrl *ItemController) GetItemByName(w http.ResponseWriter, r *http.Request)
func (*ItemController) GetItems ¶
func (ctrl *ItemController) GetItems(w http.ResponseWriter, r *http.Request)
func (*ItemController) UpdateItem ¶
func (ctrl *ItemController) UpdateItem(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.