Documentation ¶
Index ¶
- Variables
- func RegisterTransferServiceServer(s grpc.ServiceRegistrar, srv TransferServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetFromTradingPointId() int32
- func (x *CreateRequest) GetFromTradingPointType() tradingpoint.TradingPointType
- func (x *CreateRequest) GetProducts() []*ProductTransfer
- func (x *CreateRequest) GetToTradingPointId() int32
- func (x *CreateRequest) GetToTradingPointType() tradingpoint.TradingPointType
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type ProductTransfer
- func (*ProductTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ProductTransfer) GetId() int32
- func (x *ProductTransfer) GetProduct() *product.Product
- func (x *ProductTransfer) GetQuantity() int32
- func (*ProductTransfer) ProtoMessage()
- func (x *ProductTransfer) ProtoReflect() protoreflect.Message
- func (x *ProductTransfer) Reset()
- func (x *ProductTransfer) String() string
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetFromTradingPointId() int32
- func (x *Transfer) GetFromTradingPointType() tradingpoint.TradingPointType
- func (x *Transfer) GetId() int32
- func (x *Transfer) GetProducts() []*ProductTransfer
- func (x *Transfer) GetToTradingPointId() int32
- func (x *Transfer) GetToTradingPointType() tradingpoint.TradingPointType
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
- type TransferServiceClient
- type TransferServiceServer
- type UnimplementedTransferServiceServer
- type UnsafeTransferServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_transfer_transfer_proto protoreflect.FileDescriptor
var TransferService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tradingpoint.TransferService", HandlerType: (*TransferServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _TransferService_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transfer/transfer.proto", }
TransferService_ServiceDesc is the grpc.ServiceDesc for TransferService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransferServiceServer ¶
func RegisterTransferServiceServer(s grpc.ServiceRegistrar, srv TransferServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { FromTradingPointId int32 `protobuf:"varint,1,opt,name=from_trading_point_id,json=fromTradingPointId,proto3" json:"from_trading_point_id,omitempty"` FromTradingPointType tradingpoint.TradingPointType `` /* 161-byte string literal not displayed */ ToTradingPointId int32 `protobuf:"varint,3,opt,name=to_trading_point_id,json=toTradingPointId,proto3" json:"to_trading_point_id,omitempty"` ToTradingPointType tradingpoint.TradingPointType `` /* 155-byte string literal not displayed */ Products []*ProductTransfer `protobuf:"bytes,5,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetFromTradingPointId ¶
func (x *CreateRequest) GetFromTradingPointId() int32
func (*CreateRequest) GetFromTradingPointType ¶
func (x *CreateRequest) GetFromTradingPointType() tradingpoint.TradingPointType
func (*CreateRequest) GetProducts ¶
func (x *CreateRequest) GetProducts() []*ProductTransfer
func (*CreateRequest) GetToTradingPointId ¶
func (x *CreateRequest) GetToTradingPointId() int32
func (*CreateRequest) GetToTradingPointType ¶
func (x *CreateRequest) GetToTradingPointType() tradingpoint.TradingPointType
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetId ¶
func (x *CreateResponse) GetId() int32
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type ProductTransfer ¶
type ProductTransfer struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` Product *product.Product `protobuf:"bytes,3,opt,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*ProductTransfer) Descriptor
deprecated
func (*ProductTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ProductTransfer.ProtoReflect.Descriptor instead.
func (*ProductTransfer) GetId ¶
func (x *ProductTransfer) GetId() int32
func (*ProductTransfer) GetProduct ¶
func (x *ProductTransfer) GetProduct() *product.Product
func (*ProductTransfer) GetQuantity ¶
func (x *ProductTransfer) GetQuantity() int32
func (*ProductTransfer) ProtoMessage ¶
func (*ProductTransfer) ProtoMessage()
func (*ProductTransfer) ProtoReflect ¶
func (x *ProductTransfer) ProtoReflect() protoreflect.Message
func (*ProductTransfer) Reset ¶
func (x *ProductTransfer) Reset()
func (*ProductTransfer) String ¶
func (x *ProductTransfer) String() string
type Transfer ¶
type Transfer struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FromTradingPointId int32 `protobuf:"varint,2,opt,name=from_trading_point_id,json=fromTradingPointId,proto3" json:"from_trading_point_id,omitempty"` FromTradingPointType tradingpoint.TradingPointType `` /* 161-byte string literal not displayed */ ToTradingPointId int32 `protobuf:"varint,4,opt,name=to_trading_point_id,json=toTradingPointId,proto3" json:"to_trading_point_id,omitempty"` ToTradingPointType tradingpoint.TradingPointType `` /* 155-byte string literal not displayed */ Products []*ProductTransfer `protobuf:"bytes,6,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*Transfer) Descriptor
deprecated
func (*Transfer) GetFromTradingPointId ¶
func (*Transfer) GetFromTradingPointType ¶
func (x *Transfer) GetFromTradingPointType() tradingpoint.TradingPointType
func (*Transfer) GetProducts ¶
func (x *Transfer) GetProducts() []*ProductTransfer
func (*Transfer) GetToTradingPointId ¶
func (*Transfer) GetToTradingPointType ¶
func (x *Transfer) GetToTradingPointType() tradingpoint.TradingPointType
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message
type TransferServiceClient ¶
type TransferServiceClient interface {
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
}
TransferServiceClient is the client API for TransferService 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 NewTransferServiceClient ¶
func NewTransferServiceClient(cc grpc.ClientConnInterface) TransferServiceClient
type TransferServiceServer ¶
type TransferServiceServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) // contains filtered or unexported methods }
TransferServiceServer is the server API for TransferService service. All implementations must embed UnimplementedTransferServiceServer for forward compatibility
type UnimplementedTransferServiceServer ¶
type UnimplementedTransferServiceServer struct { }
UnimplementedTransferServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTransferServiceServer) Create ¶
func (UnimplementedTransferServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
type UnsafeTransferServiceServer ¶
type UnsafeTransferServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTransferServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransferServiceServer will result in compilation errors.