pharmacy

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 GRPCHandler

type GRPCHandler struct {
	pharmacyproto.UnimplementedPharmacyServiceServer // Must be
	// contains filtered or unexported fields
}

func NewPharmacyGRPCHandler

func NewPharmacyGRPCHandler(pharmacySrv PharmacySrv) *GRPCHandler

func (*GRPCHandler) CreatePharmacy

func (h *GRPCHandler) CreatePharmacy(ctx context.Context, req *pharmacyproto.NewPharmacy) (*emptypb.Empty, error)

func (*GRPCHandler) GetPharmacies

type PharmacySrv

type PharmacySrv interface {
	GetBatchOfPharmacies(
		ctx context.Context,
		lastPharmacyID int,
		limit int,
	) ([]entities.Pharmacy, error)
	CreatePharmacy(ctx context.Context, pharmacy entities.Pharmacy) error
}

Jump to

Keyboard shortcuts

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