Documentation ¶
Index ¶
- type CategoryController
- type CategoryControllerImpl
- func (controller *CategoryControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *CategoryControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *CategoryControllerImpl) FindAll(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *CategoryControllerImpl) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
- func (controller *CategoryControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryController ¶
type CategoryController interface { Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params) FindAll(writer http.ResponseWriter, request *http.Request, params httprouter.Params) }
func NewCategoryController ¶
func NewCategoryController(categoryService service.CategoryService) CategoryController
type CategoryControllerImpl ¶
type CategoryControllerImpl struct {
CategoryService service.CategoryService
}
func (*CategoryControllerImpl) Create ¶
func (controller *CategoryControllerImpl) Create(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
func (*CategoryControllerImpl) Delete ¶
func (controller *CategoryControllerImpl) Delete(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
func (*CategoryControllerImpl) FindAll ¶
func (controller *CategoryControllerImpl) FindAll(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
func (*CategoryControllerImpl) FindById ¶
func (controller *CategoryControllerImpl) FindById(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
func (*CategoryControllerImpl) Update ¶
func (controller *CategoryControllerImpl) Update(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
Click to show internal directories.
Click to hide internal directories.