Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductsRepo ¶
type ProductsRepo interface { CreateProduct(product model.Product) (productID int64, err error) UpdateProduct(product model.Product) error GetProducts() (products []model.Product, err error) GetProductByID(prodId int64) (product model.Product, err error) DeleteProductByID(prodId int64) (err error) }
func NewProductsRepo ¶
func NewProductsRepo(db *sql.DB) ProductsRepo
type StripeRepo ¶
type StripeRepo interface { CreateCustomer(customer model.StripeCustomer) error IsCustomer(userID int64) (string, bool, error) UpdateCustomer(customer model.StripeCustomer) error }
func NewStripeRepo ¶
func NewStripeRepo(db *sql.DB) StripeRepo
type UserAccountRepo ¶
type UserAccountRepo interface { GetUserByEmail(email string) (*model.UserAccount, error) GetUserByID(id int64) (*model.UserAccount, error) CreateUser(user *model.UserAccount) (userId int64, err error) }
func NewUserAccountRepo ¶
func NewUserAccountRepo(db *sql.DB) UserAccountRepo
Click to show internal directories.
Click to hide internal directories.