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: 13 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(app application.App, 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) Authorize

func (r CustomerRepository) Authorize(ctx context.Context, customerID string) error

type PaymentRepository

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

func NewPaymentRepository

func NewPaymentRepository(conn *grpc.ClientConn) PaymentRepository

func (PaymentRepository) Confirm

func (r PaymentRepository) Confirm(ctx context.Context, paymentID string) error

type ShoppingRepository

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

func NewShoppingListRepository

func NewShoppingListRepository(conn *grpc.ClientConn) ShoppingRepository

func (ShoppingRepository) Cancel

func (r ShoppingRepository) Cancel(ctx context.Context, shoppingID string) error

func (ShoppingRepository) Create

func (r ShoppingRepository) Create(ctx context.Context, orderID string, orderItems []domain.Item) (string, error)

Jump to

Keyboard shortcuts

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