grpc

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, endpoint string) (conn *grpc.ClientConn, err error)

func Register

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

func RegisterServerTx

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

Types

type ClientConn

type ClientConn = grpc.ClientConn

type ProductRepository

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

func NewProductRepository

func NewProductRepository(conn *grpc.ClientConn) ProductRepository

func (ProductRepository) Find

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

type StoreRepository

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

func NewStoreRepository

func NewStoreRepository(conn *grpc.ClientConn) StoreRepository

func (StoreRepository) Find

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

Jump to

Keyboard shortcuts

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