order_delivery

package
v0.0.0-...-eda81a1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(server *grpc.Server, controller Controller, sender Sender, cacher cache.Cache, tracer trace.Tracer)

Types

type Controller

type Controller interface {
	SearchOrders(ctx context.Context, customerID string, values controller.ValuesView) ([]model.Order, error)
	GetReturnedOrders(ctx context.Context, values controller.ValuesView) ([]model.Order, error)
}

type Sender

type Sender interface {
	SendMessage(message broker_io.RequestMessage)
}

type Service

type Service struct {
	api.OrderDeliveryServer
	// contains filtered or unexported fields
}

func New

func New(controller Controller, sender Sender, cacher cache.Cache, tracer trace.Tracer) *Service

func (*Service) GetReturnedOrders

func (*Service) SearchOrders

Jump to

Keyboard shortcuts

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