Documentation ¶
Index ¶
- Variables
- func NewAccountService() biz.AccountServiceServer
- func NewAccountServiceClient(client *grpcx.Client) (biz.AccountServiceClient, error)
- func NewLogisticsService(deliveries repo.IDeliveryRepo, notifyClient notifyB.NotificationServiceClient) biz.LogisticsServiceServer
- func NewLogisticsServiceClient(client *grpcx.Client) (biz.LogisticsServiceClient, error)
- func NewMenuService(restaurants repo.IRestaurantRepo) biz.MenuServiceServer
- func NewMenuServiceClient(client *grpcx.Client) (biz.MenuServiceClient, error)
- func NewNotificationService(notifications repo.INotificationRepo) biz.NotificationServiceServer
- func NewNotificationServiceClient(client *grpcx.Client) (biz.NotificationServiceClient, error)
- func NewOrderService(orders repo.IOrderRepo, restaurantService restB.RestaurantServiceClient, ...) biz.OrderServiceServer
- func NewOrderServiceClient(client *grpcx.Client) (biz.OrderServiceClient, error)
- func NewPaymentService(payments repo.IPaymentRepo) biz.PaymentServiceServer
- func NewPaymentServiceClient(client *grpcx.Client) (biz.PaymentServiceClient, error)
- func NewRestaurantService(restaurants repo.IRestaurantRepo) biz.RestaurantServiceServer
- func NewRestaurantServiceClient(client *grpcx.Client) (restB.RestaurantServiceClient, error)
Constants ¶
This section is empty.
Variables ¶
var ProviderAccountServiceSet = wire.NewSet(NewAccountService, NewAccountServiceClient)
ProviderAccountServiceSet is used to provide account service set.
var ProviderLogisticsServiceSet = wire.NewSet(NewLogisticsService, NewLogisticsServiceClient)
ProviderLogisticsServiceSet is used to provide logistics service set.
var ProviderNotificationServiceSet = wire.NewSet(NewNotificationService, NewNotificationServiceClient)
ProviderNotificationServiceSet is used to provide notification service set.
var ProviderOrderServiceSet = wire.NewSet(NewOrderService, NewOrderServiceClient)
ProviderOrderServiceSet is used to provide order service set.
var ProviderPaymentServiceSet = wire.NewSet(NewPaymentService, NewPaymentServiceClient)
ProviderPaymentServiceSet is used to provide payment service set.
var ProviderRestaurantServiceSet = wire.NewSet( NewRestaurantService, NewRestaurantServiceClient, NewMenuService, NewMenuServiceClient, )
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.
Source Files ¶
- account_grpc_client.go
- account_grpc_server.go
- logistics_grpc_client.go
- logistics_grpc_server.go
- notification_grpc_client.go
- notification_grpc_server.go
- order_grpc_client.go
- order_grpc_server.go
- payment_grpc_client.go
- payment_grpc_server.go
- restaurant_grpc_client.go
- restaurant_grpc_server.go
- restaurant_menu_grpc_client.go
- restaurant_menu_grpc_server.go
- wire.go