handler

package
v0.0.0-...-1551971 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCardHandler

type AddCardHandler struct {
	StripeClient stripe.Stripe
	StripeRepo   repo.StripeRepo
	// contains filtered or unexported fields
}

func NewAddCardHandler

func NewAddCardHandler(l *log.Logger, sc stripe.Stripe, sp repo.StripeRepo, tkn token.Service, user repo.UserAccountRepo) *AddCardHandler

func (*AddCardHandler) ServeHTTP

func (user *AddCardHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type PurchaseHandler

type PurchaseHandler struct {
	StripeClient stripe.Stripe
	StripeRepo   repo.StripeRepo
	// contains filtered or unexported fields
}

func NewAPurchaseHandler

func NewAPurchaseHandler(l *log.Logger, sc stripe.Stripe, sp repo.StripeRepo, tkn token.Service, user repo.UserAccountRepo, product repo.ProductsRepo) *PurchaseHandler

func (*PurchaseHandler) ServeHTTP

func (user *PurchaseHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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