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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServer

func RegisterServer(_ context.Context, app application.Application, registrar grpc.ServiceRegistrar) error

func RegisterServerTx

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

Types

type CustomerRepository

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

func NewCustomerRepository

func NewCustomerRepository(endpoint string) CustomerRepository

func (CustomerRepository) Find

func (r CustomerRepository) Find(ctx context.Context, customerID string) (customer *models.Customer, err error)

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 *models.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 *models.Store, err error)

Jump to

Keyboard shortcuts

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