Documentation
¶
Overview ¶
Package boxService is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBoxServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBoxServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BoxServiceClient) error
- func RegisterBoxServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBoxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BoxServiceServer) error
- func RegisterBoxServiceServer(s *grpc.Server, srv BoxServiceServer)
- type AddBoxToQueueRequest
- func (*AddBoxToQueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddBoxToQueueRequest) GetBoxId() uint64
- func (x *AddBoxToQueueRequest) GetComment() string
- func (x *AddBoxToQueueRequest) GetRouteQueueName() string
- func (x *AddBoxToQueueRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*AddBoxToQueueRequest) ProtoMessage()
- func (x *AddBoxToQueueRequest) ProtoReflect() protoreflect.Message
- func (x *AddBoxToQueueRequest) Reset()
- func (x *AddBoxToQueueRequest) String() string
- type BoxChangeRouteRequest
- func (*BoxChangeRouteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoxChangeRouteRequest) GetBoxId() uint64
- func (x *BoxChangeRouteRequest) GetComment() string
- func (x *BoxChangeRouteRequest) GetForceChangeRoute() bool
- func (x *BoxChangeRouteRequest) GetRouteCode() string
- func (x *BoxChangeRouteRequest) GetRouteId() uint64
- func (x *BoxChangeRouteRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*BoxChangeRouteRequest) ProtoMessage()
- func (x *BoxChangeRouteRequest) ProtoReflect() protoreflect.Message
- func (x *BoxChangeRouteRequest) Reset()
- func (x *BoxChangeRouteRequest) String() string
- type BoxCompleteRequest
- func (*BoxCompleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoxCompleteRequest) GetBoxId() uint64
- func (x *BoxCompleteRequest) GetComment() string
- func (x *BoxCompleteRequest) GetOverrideRouteEnforcement() bool
- func (x *BoxCompleteRequest) GetReason() string
- func (x *BoxCompleteRequest) GetRouteId() uint64
- func (x *BoxCompleteRequest) GetRouteStepId() uint64
- func (x *BoxCompleteRequest) GetRouteStepNumber() string
- func (x *BoxCompleteRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*BoxCompleteRequest) ProtoMessage()
- func (x *BoxCompleteRequest) ProtoReflect() protoreflect.Message
- func (x *BoxCompleteRequest) Reset()
- func (x *BoxCompleteRequest) String() string
- type BoxServiceClient
- type BoxServiceServer
- type BoxStartRequest
- func (*BoxStartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoxStartRequest) GetBoxId() uint64
- func (x *BoxStartRequest) GetComment() string
- func (x *BoxStartRequest) GetOverrideRouteEnforcement() bool
- func (x *BoxStartRequest) GetReason() string
- func (x *BoxStartRequest) GetRouteId() uint64
- func (x *BoxStartRequest) GetRouteStepId() uint64
- func (x *BoxStartRequest) GetRouteStepNumber() string
- func (x *BoxStartRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*BoxStartRequest) ProtoMessage()
- func (x *BoxStartRequest) ProtoReflect() protoreflect.Message
- func (x *BoxStartRequest) Reset()
- func (x *BoxStartRequest) String() string
- type BoxTransactionRequest
- func (*BoxTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BoxTransactionRequest) GetBoxId() uint64
- func (x *BoxTransactionRequest) GetComment() string
- func (x *BoxTransactionRequest) GetOverrideRouteEnforcement() bool
- func (x *BoxTransactionRequest) GetReason() string
- func (x *BoxTransactionRequest) GetTransaction() BoxTransactionRequest_BoxTransaction
- func (x *BoxTransactionRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*BoxTransactionRequest) ProtoMessage()
- func (x *BoxTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *BoxTransactionRequest) Reset()
- func (x *BoxTransactionRequest) String() string
- type BoxTransactionRequest_BoxTransaction
- func (BoxTransactionRequest_BoxTransaction) Descriptor() protoreflect.EnumDescriptor
- func (x BoxTransactionRequest_BoxTransaction) Enum() *BoxTransactionRequest_BoxTransaction
- func (BoxTransactionRequest_BoxTransaction) EnumDescriptor() ([]byte, []int)deprecated
- func (x BoxTransactionRequest_BoxTransaction) Number() protoreflect.EnumNumber
- func (x BoxTransactionRequest_BoxTransaction) String() string
- func (BoxTransactionRequest_BoxTransaction) Type() protoreflect.EnumType
- type ChangePLineRequest
- func (*ChangePLineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePLineRequest) GetBoxId() uint64
- func (x *ChangePLineRequest) GetComment() string
- func (x *ChangePLineRequest) GetProductionLineCode() string
- func (x *ChangePLineRequest) GetProductionLineId() uint64
- func (x *ChangePLineRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*ChangePLineRequest) ProtoMessage()
- func (x *ChangePLineRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePLineRequest) Reset()
- func (x *ChangePLineRequest) String() string
- type ClearBoxRequest
- func (*ClearBoxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearBoxRequest) GetBoxId() uint64
- func (x *ClearBoxRequest) GetComment() string
- func (x *ClearBoxRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*ClearBoxRequest) ProtoMessage()
- func (x *ClearBoxRequest) ProtoReflect() protoreflect.Message
- func (x *ClearBoxRequest) Reset()
- func (x *ClearBoxRequest) String() string
- type HandleBoxRequest
- func (*HandleBoxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleBoxRequest) GetBoxId() uint64
- func (x *HandleBoxRequest) GetComment() string
- func (x *HandleBoxRequest) GetContainerId() uint64
- func (x *HandleBoxRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*HandleBoxRequest) ProtoMessage()
- func (x *HandleBoxRequest) ProtoReflect() protoreflect.Message
- func (x *HandleBoxRequest) Reset()
- func (x *HandleBoxRequest) String() string
- type HandleLotRequest
- func (*HandleLotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleLotRequest) GetBoxId() uint64
- func (x *HandleLotRequest) GetComment() string
- func (x *HandleLotRequest) GetLotId() uint64
- func (x *HandleLotRequest) GetTransactionTime() *timestamppb.Timestamp
- func (*HandleLotRequest) ProtoMessage()
- func (x *HandleLotRequest) ProtoReflect() protoreflect.Message
- func (x *HandleLotRequest) Reset()
- func (x *HandleLotRequest) String() string
- type HandleUnitRequest
- func (*HandleUnitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleUnitRequest) GetBoxId() uint64
- func (x *HandleUnitRequest) GetComment() string
- func (x *HandleUnitRequest) GetTransactionTime() *timestamppb.Timestamp
- func (x *HandleUnitRequest) GetUnitId() uint64
- func (*HandleUnitRequest) ProtoMessage()
- func (x *HandleUnitRequest) ProtoReflect() protoreflect.Message
- func (x *HandleUnitRequest) Reset()
- func (x *HandleUnitRequest) String() string
- type UnimplementedBoxServiceServer
- func (UnimplementedBoxServiceServer) AddBoxToBox(context.Context, *HandleBoxRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) AddBoxToQueue(context.Context, *AddBoxToQueueRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) AddLotToBox(context.Context, *HandleLotRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) AddUnitToBox(context.Context, *HandleUnitRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) ChangeProductionLine(context.Context, *ChangePLineRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) ChangeRoute(context.Context, *BoxChangeRouteRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Close(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) CompleteAtRouteStep(context.Context, *BoxCompleteRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Finish(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Hold(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Open(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Pause(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Release(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) RemoveAll(context.Context, *ClearBoxRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) RemoveBox(context.Context, *HandleBoxRequest) (*emptypb.Empty, error)
- func (UnimplementedBoxServiceServer) RemoveLot(context.Context, *HandleLotRequest) (*emptypb.Empty, error)
- func (UnimplementedBoxServiceServer) RemoveUnit(context.Context, *HandleUnitRequest) (*emptypb.Empty, error)
- func (UnimplementedBoxServiceServer) SaveBox(context.Context, *dto.DBox) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) Scrap(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
- func (UnimplementedBoxServiceServer) StartAtRouteStep(context.Context, *BoxStartRequest) (*dto.DBox, error)
- type UnsafeBoxServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( BoxTransactionRequest_BoxTransaction_name = map[int32]string{ 0: "close", 1: "finish", 2: "pause", 3: "release", 4: "restart", 5: "open", 6: "hold", 7: "ship", 8: "undoClose", 9: "undoFinish", 10: "undoScrap", 11: "undoShip", } BoxTransactionRequest_BoxTransaction_value = map[string]int32{ "close": 0, "finish": 1, "pause": 2, "release": 3, "restart": 4, "open": 5, "hold": 6, "ship": 7, "undoClose": 8, "undoFinish": 9, "undoScrap": 10, "undoShip": 11, } )
Enum value maps for BoxTransactionRequest_BoxTransaction.
var File_box_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBoxServiceHandler ¶
func RegisterBoxServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBoxServiceHandler registers the http handlers for service BoxService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBoxServiceHandlerClient ¶
func RegisterBoxServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BoxServiceClient) error
RegisterBoxServiceHandlerClient registers the http handlers for service BoxService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BoxServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BoxServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BoxServiceClient" to call the correct interceptors.
func RegisterBoxServiceHandlerFromEndpoint ¶
func RegisterBoxServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBoxServiceHandlerFromEndpoint is same as RegisterBoxServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBoxServiceHandlerServer ¶
func RegisterBoxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BoxServiceServer) error
RegisterBoxServiceHandlerServer registers the http handlers for service BoxService to "mux". UnaryRPC :call BoxServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBoxServiceHandlerFromEndpoint instead.
func RegisterBoxServiceServer ¶
func RegisterBoxServiceServer(s *grpc.Server, srv BoxServiceServer)
Types ¶
type AddBoxToQueueRequest ¶
type AddBoxToQueueRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` RouteQueueName string `protobuf:"bytes,2,opt,name=route_queue_name,json=routeQueueName,proto3" json:"route_queue_name,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*AddBoxToQueueRequest) Descriptor
deprecated
func (*AddBoxToQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddBoxToQueueRequest.ProtoReflect.Descriptor instead.
func (*AddBoxToQueueRequest) GetBoxId ¶
func (x *AddBoxToQueueRequest) GetBoxId() uint64
func (*AddBoxToQueueRequest) GetComment ¶
func (x *AddBoxToQueueRequest) GetComment() string
func (*AddBoxToQueueRequest) GetRouteQueueName ¶
func (x *AddBoxToQueueRequest) GetRouteQueueName() string
func (*AddBoxToQueueRequest) GetTransactionTime ¶
func (x *AddBoxToQueueRequest) GetTransactionTime() *timestamppb.Timestamp
func (*AddBoxToQueueRequest) ProtoMessage ¶
func (*AddBoxToQueueRequest) ProtoMessage()
func (*AddBoxToQueueRequest) ProtoReflect ¶
func (x *AddBoxToQueueRequest) ProtoReflect() protoreflect.Message
func (*AddBoxToQueueRequest) Reset ¶
func (x *AddBoxToQueueRequest) Reset()
func (*AddBoxToQueueRequest) String ¶
func (x *AddBoxToQueueRequest) String() string
type BoxChangeRouteRequest ¶
type BoxChangeRouteRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` RouteCode string `protobuf:"bytes,2,opt,name=route_code,json=routeCode,proto3" json:"route_code,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` ForceChangeRoute bool `protobuf:"varint,5,opt,name=force_change_route,json=forceChangeRoute,proto3" json:"force_change_route,omitempty"` RouteId uint64 `protobuf:"varint,6,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` // contains filtered or unexported fields }
func (*BoxChangeRouteRequest) Descriptor
deprecated
func (*BoxChangeRouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoxChangeRouteRequest.ProtoReflect.Descriptor instead.
func (*BoxChangeRouteRequest) GetBoxId ¶
func (x *BoxChangeRouteRequest) GetBoxId() uint64
func (*BoxChangeRouteRequest) GetComment ¶
func (x *BoxChangeRouteRequest) GetComment() string
func (*BoxChangeRouteRequest) GetForceChangeRoute ¶
func (x *BoxChangeRouteRequest) GetForceChangeRoute() bool
func (*BoxChangeRouteRequest) GetRouteCode ¶
func (x *BoxChangeRouteRequest) GetRouteCode() string
func (*BoxChangeRouteRequest) GetRouteId ¶
func (x *BoxChangeRouteRequest) GetRouteId() uint64
func (*BoxChangeRouteRequest) GetTransactionTime ¶
func (x *BoxChangeRouteRequest) GetTransactionTime() *timestamppb.Timestamp
func (*BoxChangeRouteRequest) ProtoMessage ¶
func (*BoxChangeRouteRequest) ProtoMessage()
func (*BoxChangeRouteRequest) ProtoReflect ¶
func (x *BoxChangeRouteRequest) ProtoReflect() protoreflect.Message
func (*BoxChangeRouteRequest) Reset ¶
func (x *BoxChangeRouteRequest) Reset()
func (*BoxChangeRouteRequest) String ¶
func (x *BoxChangeRouteRequest) String() string
type BoxCompleteRequest ¶
type BoxCompleteRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` OverrideRouteEnforcement bool `` /* 136-byte string literal not displayed */ RouteStepId uint64 `protobuf:"varint,6,opt,name=route_step_id,json=routeStepId,proto3" json:"route_step_id,omitempty"` RouteStepNumber string `protobuf:"bytes,7,opt,name=route_step_number,json=routeStepNumber,proto3" json:"route_step_number,omitempty"` RouteId uint64 `protobuf:"varint,8,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` // contains filtered or unexported fields }
func (*BoxCompleteRequest) Descriptor
deprecated
func (*BoxCompleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoxCompleteRequest.ProtoReflect.Descriptor instead.
func (*BoxCompleteRequest) GetBoxId ¶
func (x *BoxCompleteRequest) GetBoxId() uint64
func (*BoxCompleteRequest) GetComment ¶
func (x *BoxCompleteRequest) GetComment() string
func (*BoxCompleteRequest) GetOverrideRouteEnforcement ¶
func (x *BoxCompleteRequest) GetOverrideRouteEnforcement() bool
func (*BoxCompleteRequest) GetReason ¶
func (x *BoxCompleteRequest) GetReason() string
func (*BoxCompleteRequest) GetRouteId ¶
func (x *BoxCompleteRequest) GetRouteId() uint64
func (*BoxCompleteRequest) GetRouteStepId ¶
func (x *BoxCompleteRequest) GetRouteStepId() uint64
func (*BoxCompleteRequest) GetRouteStepNumber ¶
func (x *BoxCompleteRequest) GetRouteStepNumber() string
func (*BoxCompleteRequest) GetTransactionTime ¶
func (x *BoxCompleteRequest) GetTransactionTime() *timestamppb.Timestamp
func (*BoxCompleteRequest) ProtoMessage ¶
func (*BoxCompleteRequest) ProtoMessage()
func (*BoxCompleteRequest) ProtoReflect ¶
func (x *BoxCompleteRequest) ProtoReflect() protoreflect.Message
func (*BoxCompleteRequest) Reset ¶
func (x *BoxCompleteRequest) Reset()
func (*BoxCompleteRequest) String ¶
func (x *BoxCompleteRequest) String() string
type BoxServiceClient ¶
type BoxServiceClient interface { //This method is used to add a box to a box AddBoxToBox(ctx context.Context, in *HandleBoxRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to add a lot to a box AddLotToBox(ctx context.Context, in *HandleLotRequest, opts ...grpc.CallOption) (*dto.DBox, error) // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) has been moved to // the queue specified. AddBoxToQueue(ctx context.Context, in *AddBoxToQueueRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to add a unit to a box AddUnitToBox(ctx context.Context, in *HandleUnitRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to change the production line of a box and all of its // contents (any contained boxes, lots and units). ChangeProductionLine(ctx context.Context, in *ChangePLineRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to change the route of a box and all of its contents // (any contained boxes, lots and units). ChangeRoute(ctx context.Context, in *BoxChangeRouteRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have closed. Close(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have completed the // route step specified. CompleteAtRouteStep(ctx context.Context, in *BoxCompleteRequest, opts ...grpc.CallOption) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have started the // route step specified. StartAtRouteStep(ctx context.Context, in *BoxStartRequest, opts ...grpc.CallOption) (*dto.DBox, error) // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have finished. Finish(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have been placed on // hold. When an object is on hold no other transactions may be performed on // it, until it is released Hold(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to record a transaction indicating that a box and its // * containers (any container boxes and carriers) have opened. The open // * method is equivalent to the undoClose method, except that it propagates // * upward to the Box's containers instead of downward to the Box's contents. Open(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have stopped // processing. When an object is paused no other transactions may be // performed on it, until it is restarted. Pause(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have been released // from hold or quarantine. Release(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) has been scrapped. Scrap(ctx context.Context, in *BoxTransactionRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method removes everything from a box. RemoveAll(ctx context.Context, in *ClearBoxRequest, opts ...grpc.CallOption) (*dto.DBox, error) //This method is used to remove a box from a box. RemoveBox(ctx context.Context, in *HandleBoxRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) //This method is used to remove a lot from a box. RemoveLot(ctx context.Context, in *HandleLotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) //This method is used to remove a unit from a box. RemoveUnit(ctx context.Context, in *HandleUnitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) //* // This method is used to save or update a box. SaveBox(ctx context.Context, in *dto.DBox, opts ...grpc.CallOption) (*dto.DBox, error) }
BoxServiceClient is the client API for BoxService 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.
func NewBoxServiceClient ¶
func NewBoxServiceClient(cc grpc.ClientConnInterface) BoxServiceClient
type BoxServiceServer ¶
type BoxServiceServer interface { //This method is used to add a box to a box AddBoxToBox(context.Context, *HandleBoxRequest) (*dto.DBox, error) //This method is used to add a lot to a box AddLotToBox(context.Context, *HandleLotRequest) (*dto.DBox, error) // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) has been moved to // the queue specified. AddBoxToQueue(context.Context, *AddBoxToQueueRequest) (*dto.DBox, error) //This method is used to add a unit to a box AddUnitToBox(context.Context, *HandleUnitRequest) (*dto.DBox, error) //This method is used to change the production line of a box and all of its // contents (any contained boxes, lots and units). ChangeProductionLine(context.Context, *ChangePLineRequest) (*dto.DBox, error) //This method is used to change the route of a box and all of its contents // (any contained boxes, lots and units). ChangeRoute(context.Context, *BoxChangeRouteRequest) (*dto.DBox, error) //This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have closed. Close(context.Context, *BoxTransactionRequest) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have completed the // route step specified. CompleteAtRouteStep(context.Context, *BoxCompleteRequest) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have started the // route step specified. StartAtRouteStep(context.Context, *BoxStartRequest) (*dto.DBox, error) // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have finished. Finish(context.Context, *BoxTransactionRequest) (*dto.DBox, error) // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have been placed on // hold. When an object is on hold no other transactions may be performed on // it, until it is released Hold(context.Context, *BoxTransactionRequest) (*dto.DBox, error) //This method is used to record a transaction indicating that a box and its // * containers (any container boxes and carriers) have opened. The open // * method is equivalent to the undoClose method, except that it propagates // * upward to the Box's containers instead of downward to the Box's contents. Open(context.Context, *BoxTransactionRequest) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have stopped // processing. When an object is paused no other transactions may be // performed on it, until it is restarted. Pause(context.Context, *BoxTransactionRequest) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) have been released // from hold or quarantine. Release(context.Context, *BoxTransactionRequest) (*dto.DBox, error) //* // This method is used to record a transaction indicating that a box and all // of its contents (any contained boxes, lots and units) has been scrapped. Scrap(context.Context, *BoxTransactionRequest) (*dto.DBox, error) //This method removes everything from a box. RemoveAll(context.Context, *ClearBoxRequest) (*dto.DBox, error) //This method is used to remove a box from a box. RemoveBox(context.Context, *HandleBoxRequest) (*emptypb.Empty, error) //This method is used to remove a lot from a box. RemoveLot(context.Context, *HandleLotRequest) (*emptypb.Empty, error) //This method is used to remove a unit from a box. RemoveUnit(context.Context, *HandleUnitRequest) (*emptypb.Empty, error) //* // This method is used to save or update a box. SaveBox(context.Context, *dto.DBox) (*dto.DBox, error) // contains filtered or unexported methods }
BoxServiceServer is the server API for BoxService service. All implementations must embed UnimplementedBoxServiceServer for forward compatibility
type BoxStartRequest ¶
type BoxStartRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` OverrideRouteEnforcement bool `` /* 136-byte string literal not displayed */ RouteStepId uint64 `protobuf:"varint,6,opt,name=route_step_id,json=routeStepId,proto3" json:"route_step_id,omitempty"` RouteStepNumber string `protobuf:"bytes,7,opt,name=route_step_number,json=routeStepNumber,proto3" json:"route_step_number,omitempty"` RouteId uint64 `protobuf:"varint,8,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"` // contains filtered or unexported fields }
func (*BoxStartRequest) Descriptor
deprecated
func (*BoxStartRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoxStartRequest.ProtoReflect.Descriptor instead.
func (*BoxStartRequest) GetBoxId ¶
func (x *BoxStartRequest) GetBoxId() uint64
func (*BoxStartRequest) GetComment ¶
func (x *BoxStartRequest) GetComment() string
func (*BoxStartRequest) GetOverrideRouteEnforcement ¶
func (x *BoxStartRequest) GetOverrideRouteEnforcement() bool
func (*BoxStartRequest) GetReason ¶
func (x *BoxStartRequest) GetReason() string
func (*BoxStartRequest) GetRouteId ¶
func (x *BoxStartRequest) GetRouteId() uint64
func (*BoxStartRequest) GetRouteStepId ¶
func (x *BoxStartRequest) GetRouteStepId() uint64
func (*BoxStartRequest) GetRouteStepNumber ¶
func (x *BoxStartRequest) GetRouteStepNumber() string
func (*BoxStartRequest) GetTransactionTime ¶
func (x *BoxStartRequest) GetTransactionTime() *timestamppb.Timestamp
func (*BoxStartRequest) ProtoMessage ¶
func (*BoxStartRequest) ProtoMessage()
func (*BoxStartRequest) ProtoReflect ¶
func (x *BoxStartRequest) ProtoReflect() protoreflect.Message
func (*BoxStartRequest) Reset ¶
func (x *BoxStartRequest) Reset()
func (*BoxStartRequest) String ¶
func (x *BoxStartRequest) String() string
type BoxTransactionRequest ¶
type BoxTransactionRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` OverrideRouteEnforcement bool `` /* 136-byte string literal not displayed */ Transaction BoxTransactionRequest_BoxTransaction `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BoxTransactionRequest) Descriptor
deprecated
func (*BoxTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use BoxTransactionRequest.ProtoReflect.Descriptor instead.
func (*BoxTransactionRequest) GetBoxId ¶
func (x *BoxTransactionRequest) GetBoxId() uint64
func (*BoxTransactionRequest) GetComment ¶
func (x *BoxTransactionRequest) GetComment() string
func (*BoxTransactionRequest) GetOverrideRouteEnforcement ¶
func (x *BoxTransactionRequest) GetOverrideRouteEnforcement() bool
func (*BoxTransactionRequest) GetReason ¶
func (x *BoxTransactionRequest) GetReason() string
func (*BoxTransactionRequest) GetTransaction ¶
func (x *BoxTransactionRequest) GetTransaction() BoxTransactionRequest_BoxTransaction
func (*BoxTransactionRequest) GetTransactionTime ¶
func (x *BoxTransactionRequest) GetTransactionTime() *timestamppb.Timestamp
func (*BoxTransactionRequest) ProtoMessage ¶
func (*BoxTransactionRequest) ProtoMessage()
func (*BoxTransactionRequest) ProtoReflect ¶
func (x *BoxTransactionRequest) ProtoReflect() protoreflect.Message
func (*BoxTransactionRequest) Reset ¶
func (x *BoxTransactionRequest) Reset()
func (*BoxTransactionRequest) String ¶
func (x *BoxTransactionRequest) String() string
type BoxTransactionRequest_BoxTransaction ¶
type BoxTransactionRequest_BoxTransaction int32
const ( BoxTransactionRequest_close BoxTransactionRequest_BoxTransaction = 0 BoxTransactionRequest_finish BoxTransactionRequest_BoxTransaction = 1 BoxTransactionRequest_pause BoxTransactionRequest_BoxTransaction = 2 BoxTransactionRequest_release BoxTransactionRequest_BoxTransaction = 3 BoxTransactionRequest_restart BoxTransactionRequest_BoxTransaction = 4 BoxTransactionRequest_open BoxTransactionRequest_BoxTransaction = 5 BoxTransactionRequest_hold BoxTransactionRequest_BoxTransaction = 6 BoxTransactionRequest_ship BoxTransactionRequest_BoxTransaction = 7 BoxTransactionRequest_undoClose BoxTransactionRequest_BoxTransaction = 8 BoxTransactionRequest_undoFinish BoxTransactionRequest_BoxTransaction = 9 BoxTransactionRequest_undoScrap BoxTransactionRequest_BoxTransaction = 10 BoxTransactionRequest_undoShip BoxTransactionRequest_BoxTransaction = 11 )
func (BoxTransactionRequest_BoxTransaction) Descriptor ¶
func (BoxTransactionRequest_BoxTransaction) Descriptor() protoreflect.EnumDescriptor
func (BoxTransactionRequest_BoxTransaction) Enum ¶
func (x BoxTransactionRequest_BoxTransaction) Enum() *BoxTransactionRequest_BoxTransaction
func (BoxTransactionRequest_BoxTransaction) EnumDescriptor
deprecated
func (BoxTransactionRequest_BoxTransaction) EnumDescriptor() ([]byte, []int)
Deprecated: Use BoxTransactionRequest_BoxTransaction.Descriptor instead.
func (BoxTransactionRequest_BoxTransaction) Number ¶
func (x BoxTransactionRequest_BoxTransaction) Number() protoreflect.EnumNumber
func (BoxTransactionRequest_BoxTransaction) String ¶
func (x BoxTransactionRequest_BoxTransaction) String() string
func (BoxTransactionRequest_BoxTransaction) Type ¶
func (BoxTransactionRequest_BoxTransaction) Type() protoreflect.EnumType
type ChangePLineRequest ¶
type ChangePLineRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` ProductionLineCode string `protobuf:"bytes,2,opt,name=production_line_code,json=productionLineCode,proto3" json:"production_line_code,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` ProductionLineId uint64 `protobuf:"varint,5,opt,name=production_line_id,json=productionLineId,proto3" json:"production_line_id,omitempty"` // contains filtered or unexported fields }
func (*ChangePLineRequest) Descriptor
deprecated
func (*ChangePLineRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangePLineRequest.ProtoReflect.Descriptor instead.
func (*ChangePLineRequest) GetBoxId ¶
func (x *ChangePLineRequest) GetBoxId() uint64
func (*ChangePLineRequest) GetComment ¶
func (x *ChangePLineRequest) GetComment() string
func (*ChangePLineRequest) GetProductionLineCode ¶
func (x *ChangePLineRequest) GetProductionLineCode() string
func (*ChangePLineRequest) GetProductionLineId ¶
func (x *ChangePLineRequest) GetProductionLineId() uint64
func (*ChangePLineRequest) GetTransactionTime ¶
func (x *ChangePLineRequest) GetTransactionTime() *timestamppb.Timestamp
func (*ChangePLineRequest) ProtoMessage ¶
func (*ChangePLineRequest) ProtoMessage()
func (*ChangePLineRequest) ProtoReflect ¶
func (x *ChangePLineRequest) ProtoReflect() protoreflect.Message
func (*ChangePLineRequest) Reset ¶
func (x *ChangePLineRequest) Reset()
func (*ChangePLineRequest) String ¶
func (x *ChangePLineRequest) String() string
type ClearBoxRequest ¶
type ClearBoxRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*ClearBoxRequest) Descriptor
deprecated
func (*ClearBoxRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearBoxRequest.ProtoReflect.Descriptor instead.
func (*ClearBoxRequest) GetBoxId ¶
func (x *ClearBoxRequest) GetBoxId() uint64
func (*ClearBoxRequest) GetComment ¶
func (x *ClearBoxRequest) GetComment() string
func (*ClearBoxRequest) GetTransactionTime ¶
func (x *ClearBoxRequest) GetTransactionTime() *timestamppb.Timestamp
func (*ClearBoxRequest) ProtoMessage ¶
func (*ClearBoxRequest) ProtoMessage()
func (*ClearBoxRequest) ProtoReflect ¶
func (x *ClearBoxRequest) ProtoReflect() protoreflect.Message
func (*ClearBoxRequest) Reset ¶
func (x *ClearBoxRequest) Reset()
func (*ClearBoxRequest) String ¶
func (x *ClearBoxRequest) String() string
type HandleBoxRequest ¶
type HandleBoxRequest struct { ContainerId uint64 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` BoxId uint64 `protobuf:"varint,2,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*HandleBoxRequest) Descriptor
deprecated
func (*HandleBoxRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleBoxRequest.ProtoReflect.Descriptor instead.
func (*HandleBoxRequest) GetBoxId ¶
func (x *HandleBoxRequest) GetBoxId() uint64
func (*HandleBoxRequest) GetComment ¶
func (x *HandleBoxRequest) GetComment() string
func (*HandleBoxRequest) GetContainerId ¶
func (x *HandleBoxRequest) GetContainerId() uint64
func (*HandleBoxRequest) GetTransactionTime ¶
func (x *HandleBoxRequest) GetTransactionTime() *timestamppb.Timestamp
func (*HandleBoxRequest) ProtoMessage ¶
func (*HandleBoxRequest) ProtoMessage()
func (*HandleBoxRequest) ProtoReflect ¶
func (x *HandleBoxRequest) ProtoReflect() protoreflect.Message
func (*HandleBoxRequest) Reset ¶
func (x *HandleBoxRequest) Reset()
func (*HandleBoxRequest) String ¶
func (x *HandleBoxRequest) String() string
type HandleLotRequest ¶
type HandleLotRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` LotId uint64 `protobuf:"varint,2,opt,name=lot_id,json=lotId,proto3" json:"lot_id,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*HandleLotRequest) Descriptor
deprecated
func (*HandleLotRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleLotRequest.ProtoReflect.Descriptor instead.
func (*HandleLotRequest) GetBoxId ¶
func (x *HandleLotRequest) GetBoxId() uint64
func (*HandleLotRequest) GetComment ¶
func (x *HandleLotRequest) GetComment() string
func (*HandleLotRequest) GetLotId ¶
func (x *HandleLotRequest) GetLotId() uint64
func (*HandleLotRequest) GetTransactionTime ¶
func (x *HandleLotRequest) GetTransactionTime() *timestamppb.Timestamp
func (*HandleLotRequest) ProtoMessage ¶
func (*HandleLotRequest) ProtoMessage()
func (*HandleLotRequest) ProtoReflect ¶
func (x *HandleLotRequest) ProtoReflect() protoreflect.Message
func (*HandleLotRequest) Reset ¶
func (x *HandleLotRequest) Reset()
func (*HandleLotRequest) String ¶
func (x *HandleLotRequest) String() string
type HandleUnitRequest ¶
type HandleUnitRequest struct { BoxId uint64 `protobuf:"varint,1,opt,name=box_id,json=boxId,proto3" json:"box_id,omitempty"` UnitId uint64 `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*HandleUnitRequest) Descriptor
deprecated
func (*HandleUnitRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleUnitRequest.ProtoReflect.Descriptor instead.
func (*HandleUnitRequest) GetBoxId ¶
func (x *HandleUnitRequest) GetBoxId() uint64
func (*HandleUnitRequest) GetComment ¶
func (x *HandleUnitRequest) GetComment() string
func (*HandleUnitRequest) GetTransactionTime ¶
func (x *HandleUnitRequest) GetTransactionTime() *timestamppb.Timestamp
func (*HandleUnitRequest) GetUnitId ¶
func (x *HandleUnitRequest) GetUnitId() uint64
func (*HandleUnitRequest) ProtoMessage ¶
func (*HandleUnitRequest) ProtoMessage()
func (*HandleUnitRequest) ProtoReflect ¶
func (x *HandleUnitRequest) ProtoReflect() protoreflect.Message
func (*HandleUnitRequest) Reset ¶
func (x *HandleUnitRequest) Reset()
func (*HandleUnitRequest) String ¶
func (x *HandleUnitRequest) String() string
type UnimplementedBoxServiceServer ¶
type UnimplementedBoxServiceServer struct { }
UnimplementedBoxServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBoxServiceServer) AddBoxToBox ¶
func (UnimplementedBoxServiceServer) AddBoxToBox(context.Context, *HandleBoxRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) AddBoxToQueue ¶
func (UnimplementedBoxServiceServer) AddBoxToQueue(context.Context, *AddBoxToQueueRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) AddLotToBox ¶
func (UnimplementedBoxServiceServer) AddLotToBox(context.Context, *HandleLotRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) AddUnitToBox ¶
func (UnimplementedBoxServiceServer) AddUnitToBox(context.Context, *HandleUnitRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) ChangeProductionLine ¶
func (UnimplementedBoxServiceServer) ChangeProductionLine(context.Context, *ChangePLineRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) ChangeRoute ¶
func (UnimplementedBoxServiceServer) ChangeRoute(context.Context, *BoxChangeRouteRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) Close ¶
func (UnimplementedBoxServiceServer) Close(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) CompleteAtRouteStep ¶
func (UnimplementedBoxServiceServer) CompleteAtRouteStep(context.Context, *BoxCompleteRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) Finish ¶
func (UnimplementedBoxServiceServer) Finish(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) Hold ¶
func (UnimplementedBoxServiceServer) Hold(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) Open ¶
func (UnimplementedBoxServiceServer) Open(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) Pause ¶
func (UnimplementedBoxServiceServer) Pause(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) Release ¶
func (UnimplementedBoxServiceServer) Release(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) RemoveAll ¶
func (UnimplementedBoxServiceServer) RemoveAll(context.Context, *ClearBoxRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) RemoveBox ¶
func (UnimplementedBoxServiceServer) RemoveBox(context.Context, *HandleBoxRequest) (*emptypb.Empty, error)
func (UnimplementedBoxServiceServer) RemoveLot ¶
func (UnimplementedBoxServiceServer) RemoveLot(context.Context, *HandleLotRequest) (*emptypb.Empty, error)
func (UnimplementedBoxServiceServer) RemoveUnit ¶
func (UnimplementedBoxServiceServer) RemoveUnit(context.Context, *HandleUnitRequest) (*emptypb.Empty, error)
func (UnimplementedBoxServiceServer) Scrap ¶
func (UnimplementedBoxServiceServer) Scrap(context.Context, *BoxTransactionRequest) (*dto.DBox, error)
func (UnimplementedBoxServiceServer) StartAtRouteStep ¶
func (UnimplementedBoxServiceServer) StartAtRouteStep(context.Context, *BoxStartRequest) (*dto.DBox, error)
type UnsafeBoxServiceServer ¶
type UnsafeBoxServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBoxServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BoxServiceServer will result in compilation errors.