netxd_transfer

package module
v0.0.0-...-31a57c7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetAmount

func (x *Details) GetAmount() int64

func (*Details) GetFromAccount

func (x *Details) GetFromAccount() int64

func (*Details) GetToAccount

func (x *Details) GetToAccount() int64

func (*Details) GetTransactionId

func (x *Details) GetTransactionId() int64

func (*Details) ProtoMessage

func (*Details) ProtoMessage()

func (*Details) ProtoReflect

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

func (*Details) Reset

func (x *Details) Reset()

func (*Details) String

func (x *Details) String() string

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.

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

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