grpc

package
v0.0.0-...-3a9fddd Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 9 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 RegisterServer

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

Types

type CustomerRepository

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

func NewCustomerRepository

func NewCustomerRepository(conn *grpc.ClientConn) CustomerRepository

func (CustomerRepository) Find

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

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

Jump to

Keyboard shortcuts

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