domain

package
v0.0.0-...-fefde71 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderAccountServiceSet is used to provide account service set.

ProviderLogisticsServiceSet is used to provide logistics service set.

ProviderNotificationServiceSet is used to provide notification service set.

View Source
var ProviderOrderServiceSet = wire.NewSet(NewOrderService, NewOrderServiceClient)

ProviderOrderServiceSet is used to provide order service set.

ProviderPaymentServiceSet is used to provide payment service set.

ProviderRestaurantServiceSet is used to provide restaurant service set.

Functions

func NewAccountService

func NewAccountService() biz.AccountServiceServer

NewAccountService creates and returns a new AccountService.

func NewAccountServiceClient

func NewAccountServiceClient(client *grpcx.Client) (biz.AccountServiceClient, error)

NewAccountServiceClient will create a new account service client.

func NewLogisticsService

func NewLogisticsService(
	deliveries repo.IDeliveryRepo,
	notifyClient notifyB.NotificationServiceClient,
) biz.LogisticsServiceServer

NewLogisticsService creates a new logistics service.

func NewLogisticsServiceClient

func NewLogisticsServiceClient(client *grpcx.Client) (biz.LogisticsServiceClient, error)

NewLogisticsServiceClient creates a new logistics service client.

func NewMenuService

func NewMenuService(restaurants repo.IRestaurantRepo) biz.MenuServiceServer

NewMenuService is used to create a new menu service.

func NewMenuServiceClient

func NewMenuServiceClient(client *grpcx.Client) (biz.MenuServiceClient, error)

NewMenuServiceClient is used to create a new menu service client.

func NewNotificationService

func NewNotificationService(notifications repo.INotificationRepo) biz.NotificationServiceServer

NewNotificationService creates a new notification service.

func NewNotificationServiceClient

func NewNotificationServiceClient(client *grpcx.Client) (biz.NotificationServiceClient, error)

NewNotificationServiceClient creates a new impl service client.

func NewOrderService

func NewOrderService(
	orders repo.IOrderRepo,
	restaurantService restB.RestaurantServiceClient,
	menuService restB.MenuServiceClient,
	accountService userB.AccountServiceClient,
	notifyService notifyB.NotificationServiceClient,
	paymentService payB.PaymentServiceClient,
	logisticsService opsB.LogisticsServiceClient,
) biz.OrderServiceServer

NewOrderService returns the order service instance.

func NewOrderServiceClient

func NewOrderServiceClient(client *grpcx.Client) (biz.OrderServiceClient, error)

NewOrderServiceClient returns a new OrderServiceClient instance.

func NewPaymentService

func NewPaymentService(payments repo.IPaymentRepo) biz.PaymentServiceServer

NewPaymentService creates a new payment service.

func NewPaymentServiceClient

func NewPaymentServiceClient(client *grpcx.Client) (biz.PaymentServiceClient, error)

NewPaymentServiceClient creates a new payment service client.

func NewRestaurantService

func NewRestaurantService(restaurants repo.IRestaurantRepo) biz.RestaurantServiceServer

NewRestaurantService will create a new restaurant service.

func NewRestaurantServiceClient

func NewRestaurantServiceClient(client *grpcx.Client) (restB.RestaurantServiceClient, error)

NewRestaurantServiceClient will create a new restaurant service client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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