web

package
v0.0.0-...-ed03793 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (ProductHandlerRegistry) RegisterRoutes

func (h ProductHandlerRegistry) RegisterRoutes(r chi.Router) error

type ProductHandlerRegistryOptions

type ProductHandlerRegistryOptions struct {
	ProductController       *ProductController
	UserAuthMiddleware      userauth.UserAuthMiddleware
	SellerCheckerMiddleware middleware.SellerCheckerMiddleware
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL