pharmacyrepo

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewPharmacyRepo

func NewPharmacyRepo(master *sqlx.DB, slave *sqlx.DB) *Repository

func (*Repository) CreatePharmacy

func (r *Repository) CreatePharmacy(ctx context.Context, pharmacy entities.Pharmacy) error

func (*Repository) GetBatchOfPharmacies

func (r *Repository) GetBatchOfPharmacies(
	ctx context.Context,
	lastPharmacyID int,
	limit int,
) ([]entities.Pharmacy, error)

Jump to

Keyboard shortcuts

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