Documentation ¶
Index ¶
- type ProductController
- func (c ProductController) AuthedCreateHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) AuthedDeleteHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) AuthedListHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) AuthedUpdateHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) CreateHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) DeleteHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) GetHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) ListHandler(w http.ResponseWriter, r *http.Request)
- func (c ProductController) UpdateHandler(w http.ResponseWriter, r *http.Request)
- type ProductControllerOptions
- type ProductHandlerRegistry
- type ProductHandlerRegistryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductController ¶
type ProductController struct {
// contains filtered or unexported fields
}
func NewProductController ¶
func NewProductController(options ProductControllerOptions) *ProductController
func (ProductController) AuthedCreateHandler ¶
func (c ProductController) AuthedCreateHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) AuthedDeleteHandler ¶
func (c ProductController) AuthedDeleteHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) AuthedListHandler ¶
func (c ProductController) AuthedListHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) AuthedUpdateHandler ¶
func (c ProductController) AuthedUpdateHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) CreateHandler ¶
func (c ProductController) CreateHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) DeleteHandler ¶
func (c ProductController) DeleteHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) GetHandler ¶
func (c ProductController) GetHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) ListHandler ¶
func (c ProductController) ListHandler(w http.ResponseWriter, r *http.Request)
func (ProductController) UpdateHandler ¶
func (c ProductController) UpdateHandler(w http.ResponseWriter, r *http.Request)
type ProductControllerOptions ¶
type ProductControllerOptions struct { ProductLister usecase.ProductLister ProductGetter usecase.ProductGetter ProductCreator usecase.ProductCreator ProductUpdater usecase.ProductUpdater ProductDeleter usecase.ProductDeleter ProductAuthedLister usecase.ProductAuthedLister ProductAuthedCreator usecase.ProductAuthedCreator ProductAuthedUpdater usecase.ProductAuthedUpdater ProductAuthedDeleter usecase.ProductAuthedDeleter }
type ProductHandlerRegistry ¶
type ProductHandlerRegistry struct {
// contains filtered or unexported fields
}
func NewProductHandlerRegistry ¶
func NewProductHandlerRegistry(options ProductHandlerRegistryOptions) *ProductHandlerRegistry
func (ProductHandlerRegistry) RegisterRoutes ¶
func (h ProductHandlerRegistry) RegisterRoutes(r chi.Router) error
type ProductHandlerRegistryOptions ¶
type ProductHandlerRegistryOptions struct { ProductController *ProductController UserAuthMiddleware userauth.UserAuthMiddleware SellerCheckerMiddleware middleware.SellerCheckerMiddleware }
Click to show internal directories.
Click to hide internal directories.