client

package
v0.0.0-...-5b766ea Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceSetForClient = wire.NewSet(NewLogisticsClient)

ServiceSetForClient providers

Functions

This section is empty.

Types

type APILogisticsClient

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

APILogisticsClient to send requests about cargo unit movements

func NewLogisticsClient

func NewLogisticsClient() *APILogisticsClient

NewLogisticsClient instance

func (*APILogisticsClient) Connect

func (lc *APILogisticsClient) Connect(serverAddr string, ctx context.Context) error

Connect to gRPC API

func (*APILogisticsClient) Disconnect

func (lc *APILogisticsClient) Disconnect() error

Disconnect from gRPC API

func (*APILogisticsClient) MoveUnit

func (lc *APILogisticsClient) MoveUnit(ctx context.Context, req *apiv1.MoveUnitRequest) error

MoveUnit to new location

func (*APILogisticsClient) UnitReachedWarehouse

func (lc *APILogisticsClient) UnitReachedWarehouse(ctx context.Context, req *apiv1.UnitReachedWarehouseRequest) error

UnitReachedWarehouse report that reach warehouse

Jump to

Keyboard shortcuts

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