grpc

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(app application.App, registrar grpc.ServiceRegistrar) error

func RegisterServerTx

func RegisterServerTx(container di.Container, registrar grpc.ServiceRegistrar) error

Types

type ProductRepository

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

func NewProductRepository

func NewProductRepository(endpoint string) ProductRepository

func (ProductRepository) Find

func (r ProductRepository) Find(ctx context.Context, productID string) (product *domain.Product, err error)

type StoreRepository

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

func NewStoreRepository

func NewStoreRepository(endpoint string) StoreRepository

func (StoreRepository) Find

func (r StoreRepository) Find(ctx context.Context, storeID string) (store *domain.Store, err error)

Jump to

Keyboard shortcuts

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