transfer

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_transfer_transfer_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetFromTradingPointId

func (x *Transfer) GetFromTradingPointId() int32

func (*Transfer) GetFromTradingPointType

func (x *Transfer) GetFromTradingPointType() tradingpoint.TradingPointType

func (*Transfer) GetId

func (x *Transfer) GetId() int32

func (*Transfer) GetProducts

func (x *Transfer) GetProducts() []*ProductTransfer

func (*Transfer) GetToTradingPointId

func (x *Transfer) GetToTradingPointId() int32

func (*Transfer) GetToTradingPointType

func (x *Transfer) GetToTradingPointType() tradingpoint.TradingPointType

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

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

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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