Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddProductHandler ¶
type AddProductHandler struct { StripeClient stripe.Stripe StripeRepo repo.StripeRepo // contains filtered or unexported fields }
func NewAddProductHandler ¶
func NewAddProductHandler(l *log.Logger, p repo.ProductsRepo, sc stripe.Stripe, sp repo.StripeRepo, tkn token.Service) *AddProductHandler
func (*AddProductHandler) ServeHTTP ¶
func (product *AddProductHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type DeleteProductHandler ¶
type DeleteProductHandler struct { StripeClient stripe.Stripe StripeRepo repo.StripeRepo // contains filtered or unexported fields }
func NewDeleteProductHandler ¶
func NewDeleteProductHandler(l *log.Logger, p repo.ProductsRepo, sc stripe.Stripe, sp repo.StripeRepo, tkn token.Service) *DeleteProductHandler
func (*DeleteProductHandler) ServeHTTP ¶
func (product *DeleteProductHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type GetProductHandler ¶
type GetProductHandler struct { StripeClient stripe.Stripe StripeRepo repo.StripeRepo // contains filtered or unexported fields }
func NewGetProductHandler ¶
func NewGetProductHandler(l *log.Logger, p repo.ProductsRepo, sc stripe.Stripe, sp repo.StripeRepo, tkn token.Service) *GetProductHandler
func (*GetProductHandler) ServeHTTP ¶
func (product *GetProductHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type UpdateProductHandler ¶
type UpdateProductHandler struct { StripeClient stripe.Stripe StripeRepo repo.StripeRepo // contains filtered or unexported fields }
func NewUpdateProductHandler ¶
func NewUpdateProductHandler(l *log.Logger, p repo.ProductsRepo, sc stripe.Stripe, sp repo.StripeRepo, tkn token.Service) *UpdateProductHandler
func (*UpdateProductHandler) ServeHTTP ¶
func (product *UpdateProductHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.