pharmacyhandler

package
v0.0.0-...-c42784e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Router chi.Router

	*deliveryhttp.BaseHandler
	// contains filtered or unexported fields
}

func NewPharmacyHandler

func NewPharmacyHandler(
	baseHandler *deliveryhttp.BaseHandler,
	pharmacySrv PharmacySrv,
	authMiddleware *middleware.AuthMiddleware,
) *Handler

type PharmacySrv

type PharmacySrv interface {
	CreatePharmacy(ctx context.Context, pharmacy entities.Pharmacy) error
	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