apiv1

package
v0.0.0-...-ec37f7a Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CoopLogisticsEngineAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "coopnorge.logistics.api.v1.CoopLogisticsEngineAPI",
	HandlerType: (*CoopLogisticsEngineAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MoveUnit",
			Handler:    _CoopLogisticsEngineAPI_MoveUnit_Handler,
		},
		{
			MethodName: "UnitReachedWarehouse",
			Handler:    _CoopLogisticsEngineAPI_UnitReachedWarehouse_Handler,
		},
		{
			MethodName: "GetSummary",
			Handler:    _CoopLogisticsEngineAPI_GetSummary_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/logistics.proto",
}

CoopLogisticsEngineAPI_ServiceDesc is the grpc.ServiceDesc for CoopLogisticsEngineAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_v1_logistics_proto protoreflect.FileDescriptor

Functions

func RegisterCoopLogisticsEngineAPIServer

func RegisterCoopLogisticsEngineAPIServer(s grpc.ServiceRegistrar, srv CoopLogisticsEngineAPIServer)

Types

type CoopLogisticsEngineAPIClient

type CoopLogisticsEngineAPIClient interface {
	// MoveUnit request will be send when unit moves in dimensions to new location.
	MoveUnit(ctx context.Context, in *MoveUnitRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	// UnitReachedWarehouse reports when unit reached warehouse to do something there.
	UnitReachedWarehouse(ctx context.Context, in *UnitReachedWarehouseRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	// Get Summary
	GetSummary(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*SummaryResponse, error)
}

CoopLogisticsEngineAPIClient is the client API for CoopLogisticsEngineAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CoopLogisticsEngineAPIServer

type CoopLogisticsEngineAPIServer interface {
	// MoveUnit request will be send when unit moves in dimensions to new location.
	MoveUnit(context.Context, *MoveUnitRequest) (*DefaultResponse, error)
	// UnitReachedWarehouse reports when unit reached warehouse to do something there.
	UnitReachedWarehouse(context.Context, *UnitReachedWarehouseRequest) (*DefaultResponse, error)
	// Get Summary
	GetSummary(context.Context, *DefaultRequest) (*SummaryResponse, error)
	// contains filtered or unexported methods
}

CoopLogisticsEngineAPIServer is the server API for CoopLogisticsEngineAPI service. All implementations must embed UnimplementedCoopLogisticsEngineAPIServer for forward compatibility

type DefaultRequest

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

DefaultRequest

func (*DefaultRequest) Descriptor deprecated

func (*DefaultRequest) Descriptor() ([]byte, []int)

Deprecated: Use DefaultRequest.ProtoReflect.Descriptor instead.

func (*DefaultRequest) ProtoMessage

func (*DefaultRequest) ProtoMessage()

func (*DefaultRequest) ProtoReflect

func (x *DefaultRequest) ProtoReflect() protoreflect.Message

func (*DefaultRequest) Reset

func (x *DefaultRequest) Reset()

func (*DefaultRequest) String

func (x *DefaultRequest) String() string

type DefaultResponse

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

DefaultResponse

func (*DefaultResponse) Descriptor deprecated

func (*DefaultResponse) Descriptor() ([]byte, []int)

Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.

func (*DefaultResponse) ProtoMessage

func (*DefaultResponse) ProtoMessage()

func (*DefaultResponse) ProtoReflect

func (x *DefaultResponse) ProtoReflect() protoreflect.Message

func (*DefaultResponse) Reset

func (x *DefaultResponse) Reset()

func (*DefaultResponse) String

func (x *DefaultResponse) String() string

type Location

type Location struct {
	Latitude  uint32 `protobuf:"varint,1,opt,name=Latitude,proto3" json:"Latitude,omitempty"`
	Longitude uint32 `protobuf:"varint,2,opt,name=Longitude,proto3" json:"Longitude,omitempty"`
	// contains filtered or unexported fields
}

Location where entity now located in X,Y Axis

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetLatitude

func (x *Location) GetLatitude() uint32

func (*Location) GetLongitude

func (x *Location) GetLongitude() uint32

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type MoveUnitRequest

type MoveUnitRequest struct {
	CargoUnitId int64     `protobuf:"varint,1,opt,name=cargo_unit_id,json=cargoUnitId,proto3" json:"cargo_unit_id,omitempty"`
	Location    *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

MoveUnitRequest

func (*MoveUnitRequest) Descriptor deprecated

func (*MoveUnitRequest) Descriptor() ([]byte, []int)

Deprecated: Use MoveUnitRequest.ProtoReflect.Descriptor instead.

func (*MoveUnitRequest) GetCargoUnitId

func (x *MoveUnitRequest) GetCargoUnitId() int64

func (*MoveUnitRequest) GetLocation

func (x *MoveUnitRequest) GetLocation() *Location

func (*MoveUnitRequest) ProtoMessage

func (*MoveUnitRequest) ProtoMessage()

func (*MoveUnitRequest) ProtoReflect

func (x *MoveUnitRequest) ProtoReflect() protoreflect.Message

func (*MoveUnitRequest) Reset

func (x *MoveUnitRequest) Reset()

func (*MoveUnitRequest) String

func (x *MoveUnitRequest) String() string

type SummaryResponse

type SummaryResponse struct {
	TotalUnits   int64 `protobuf:"varint,1,opt,name=totalUnits,proto3" json:"totalUnits,omitempty"`
	TotalReached int64 `protobuf:"varint,2,opt,name=totalReached,proto3" json:"totalReached,omitempty"`
	// contains filtered or unexported fields
}

Summary Response

func (*SummaryResponse) Descriptor deprecated

func (*SummaryResponse) Descriptor() ([]byte, []int)

Deprecated: Use SummaryResponse.ProtoReflect.Descriptor instead.

func (*SummaryResponse) GetTotalReached

func (x *SummaryResponse) GetTotalReached() int64

func (*SummaryResponse) GetTotalUnits

func (x *SummaryResponse) GetTotalUnits() int64

func (*SummaryResponse) ProtoMessage

func (*SummaryResponse) ProtoMessage()

func (*SummaryResponse) ProtoReflect

func (x *SummaryResponse) ProtoReflect() protoreflect.Message

func (*SummaryResponse) Reset

func (x *SummaryResponse) Reset()

func (*SummaryResponse) String

func (x *SummaryResponse) String() string

type UnimplementedCoopLogisticsEngineAPIServer

type UnimplementedCoopLogisticsEngineAPIServer struct {
}

UnimplementedCoopLogisticsEngineAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedCoopLogisticsEngineAPIServer) GetSummary

func (UnimplementedCoopLogisticsEngineAPIServer) MoveUnit

func (UnimplementedCoopLogisticsEngineAPIServer) UnitReachedWarehouse

type UnitReachedWarehouseRequest

type UnitReachedWarehouseRequest struct {
	Location     *Location              `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	Announcement *WarehouseAnnouncement `protobuf:"bytes,2,opt,name=announcement,proto3" json:"announcement,omitempty"`
	// contains filtered or unexported fields
}

UnitReachedWarehouseRequest contains WarehouseAnnouncement with Location

func (*UnitReachedWarehouseRequest) Descriptor deprecated

func (*UnitReachedWarehouseRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnitReachedWarehouseRequest.ProtoReflect.Descriptor instead.

func (*UnitReachedWarehouseRequest) GetAnnouncement

func (x *UnitReachedWarehouseRequest) GetAnnouncement() *WarehouseAnnouncement

func (*UnitReachedWarehouseRequest) GetLocation

func (x *UnitReachedWarehouseRequest) GetLocation() *Location

func (*UnitReachedWarehouseRequest) ProtoMessage

func (*UnitReachedWarehouseRequest) ProtoMessage()

func (*UnitReachedWarehouseRequest) ProtoReflect

func (*UnitReachedWarehouseRequest) Reset

func (x *UnitReachedWarehouseRequest) Reset()

func (*UnitReachedWarehouseRequest) String

func (x *UnitReachedWarehouseRequest) String() string

type UnsafeCoopLogisticsEngineAPIServer

type UnsafeCoopLogisticsEngineAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeCoopLogisticsEngineAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoopLogisticsEngineAPIServer will result in compilation errors.

type WarehouseAnnouncement

type WarehouseAnnouncement struct {

	// cargo_unit_id is unique id
	CargoUnitId int64 `protobuf:"varint,1,opt,name=cargo_unit_id,json=cargoUnitId,proto3" json:"cargo_unit_id,omitempty"`
	// warehouse_id is unique id
	WarehouseId int64 `protobuf:"varint,2,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"`
	// the message contains information about the announcement
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

WarehouseAnnouncement

func (*WarehouseAnnouncement) Descriptor deprecated

func (*WarehouseAnnouncement) Descriptor() ([]byte, []int)

Deprecated: Use WarehouseAnnouncement.ProtoReflect.Descriptor instead.

func (*WarehouseAnnouncement) GetCargoUnitId

func (x *WarehouseAnnouncement) GetCargoUnitId() int64

func (*WarehouseAnnouncement) GetMessage

func (x *WarehouseAnnouncement) GetMessage() string

func (*WarehouseAnnouncement) GetWarehouseId

func (x *WarehouseAnnouncement) GetWarehouseId() int64

func (*WarehouseAnnouncement) ProtoMessage

func (*WarehouseAnnouncement) ProtoMessage()

func (*WarehouseAnnouncement) ProtoReflect

func (x *WarehouseAnnouncement) ProtoReflect() protoreflect.Message

func (*WarehouseAnnouncement) Reset

func (x *WarehouseAnnouncement) Reset()

func (*WarehouseAnnouncement) String

func (x *WarehouseAnnouncement) String() string

Jump to

Keyboard shortcuts

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