productrepository

package
v0.0.0-...-786533a Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductRepository

type ProductRepository interface {
	Fetch(paginationRequest *dto.PaginationRequestParms) ([]domain.Product, error)
	FetchOne(id string) (*domain.Product, error)
	Purchase(subscription *domain.Subscription) (string, error)
}

ProductRepository is a contract of database connection adapter layer

func New

func New(db sqlite.Db) ProductRepository

New returns contract implementation of ProductRepository

Jump to

Keyboard shortcuts

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