Documentation ¶
Index ¶
- Variables
- func RegisterTransferServiceServer(s grpc.ServiceRegistrar, srv TransferServiceServer)
- type DetailResponse
- type Details
- func (*Details) Descriptor() ([]byte, []int)deprecated
- func (x *Details) GetAmount() int64
- func (x *Details) GetFromAccount() int64
- func (x *Details) GetToAccount() int64
- func (x *Details) GetTransactionId() int64
- func (*Details) ProtoMessage()
- func (x *Details) ProtoReflect() protoreflect.Message
- func (x *Details) Reset()
- func (x *Details) String() string
- type TransferServiceClient
- type TransferServiceServer
- type UnimplementedTransferServiceServer
- type UnsafeTransferServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_netxd_transfer_transfer_proto protoreflect.FileDescriptor
var TransferService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "netxd_transfer.TransferService", HandlerType: (*TransferServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Transfer", Handler: _TransferService_Transfer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "netxd_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 DetailResponse ¶
type DetailResponse struct { TransactionId int64 `protobuf:"varint,1,opt,name=Transaction_id,json=TransactionId,proto3" json:"Transaction_id,omitempty"` // contains filtered or unexported fields }
func (*DetailResponse) Descriptor
deprecated
func (*DetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use DetailResponse.ProtoReflect.Descriptor instead.
func (*DetailResponse) GetTransactionId ¶
func (x *DetailResponse) GetTransactionId() int64
func (*DetailResponse) ProtoMessage ¶
func (*DetailResponse) ProtoMessage()
func (*DetailResponse) ProtoReflect ¶
func (x *DetailResponse) ProtoReflect() protoreflect.Message
func (*DetailResponse) Reset ¶
func (x *DetailResponse) Reset()
func (*DetailResponse) String ¶
func (x *DetailResponse) String() string
type Details ¶
type Details struct { TransactionId int64 `protobuf:"varint,1,opt,name=Transaction_id,json=TransactionId,proto3" json:"Transaction_id,omitempty"` FromAccount int64 `protobuf:"varint,2,opt,name=From_account,json=FromAccount,proto3" json:"From_account,omitempty"` ToAccount int64 `protobuf:"varint,3,opt,name=To_account,json=ToAccount,proto3" json:"To_account,omitempty"` Amount int64 `protobuf:"varint,4,opt,name=Amount,proto3" json:"Amount,omitempty"` // contains filtered or unexported fields }
func (*Details) Descriptor
deprecated
func (*Details) GetFromAccount ¶
func (*Details) GetToAccount ¶
func (*Details) GetTransactionId ¶
func (*Details) ProtoMessage ¶
func (*Details) ProtoMessage()
func (*Details) ProtoReflect ¶
func (x *Details) ProtoReflect() protoreflect.Message
type TransferServiceClient ¶
type TransferServiceClient interface {
Transfer(ctx context.Context, in *Details, opts ...grpc.CallOption) (*DetailResponse, 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 { Transfer(context.Context, *Details) (*DetailResponse, 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) Transfer ¶
func (UnimplementedTransferServiceServer) Transfer(context.Context, *Details) (*DetailResponse, 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.