Documentation ¶
Index ¶
- Variables
- func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)
- type TransactionData
- func (*TransactionData) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionData) GetAmount() int64
- func (x *TransactionData) GetFrom() int64
- func (x *TransactionData) GetTo() int64
- func (*TransactionData) ProtoMessage()
- func (x *TransactionData) ProtoReflect() protoreflect.Message
- func (x *TransactionData) Reset()
- func (x *TransactionData) String() string
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionResponse) GetMessage() string
- func (*TransactionResponse) ProtoMessage()
- func (x *TransactionResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionResponse) Reset()
- func (x *TransactionResponse) String() string
- type TransactionServiceClient
- type TransactionServiceServer
- type UnimplementedTransactionServiceServer
- type UnsafeTransactionServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_transaction_transaction_proto protoreflect.FileDescriptor
var TransactionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "netxd_customer.TransactionService", HandlerType: (*TransactionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TransferMoney", Handler: _TransactionService_TransferMoney_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc-transaction/transaction.proto", }
TransactionService_ServiceDesc is the grpc.ServiceDesc for TransactionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransactionServiceServer ¶
func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)
Types ¶
type TransactionData ¶
type TransactionData struct { From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*TransactionData) Descriptor
deprecated
func (*TransactionData) Descriptor() ([]byte, []int)
Deprecated: Use TransactionData.ProtoReflect.Descriptor instead.
func (*TransactionData) GetAmount ¶
func (x *TransactionData) GetAmount() int64
func (*TransactionData) GetFrom ¶
func (x *TransactionData) GetFrom() int64
func (*TransactionData) GetTo ¶
func (x *TransactionData) GetTo() int64
func (*TransactionData) ProtoMessage ¶
func (*TransactionData) ProtoMessage()
func (*TransactionData) ProtoReflect ¶
func (x *TransactionData) ProtoReflect() protoreflect.Message
func (*TransactionData) Reset ¶
func (x *TransactionData) Reset()
func (*TransactionData) String ¶
func (x *TransactionData) String() string
type TransactionResponse ¶
type TransactionResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TransactionResponse) Descriptor
deprecated
func (*TransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionResponse.ProtoReflect.Descriptor instead.
func (*TransactionResponse) GetMessage ¶
func (x *TransactionResponse) GetMessage() string
func (*TransactionResponse) ProtoMessage ¶
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) ProtoReflect ¶
func (x *TransactionResponse) ProtoReflect() protoreflect.Message
func (*TransactionResponse) Reset ¶
func (x *TransactionResponse) Reset()
func (*TransactionResponse) String ¶
func (x *TransactionResponse) String() string
type TransactionServiceClient ¶
type TransactionServiceClient interface {
TransferMoney(ctx context.Context, in *TransactionData, opts ...grpc.CallOption) (*TransactionResponse, error)
}
TransactionServiceClient is the client API for TransactionService 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 NewTransactionServiceClient ¶
func NewTransactionServiceClient(cc grpc.ClientConnInterface) TransactionServiceClient
type TransactionServiceServer ¶
type TransactionServiceServer interface { TransferMoney(context.Context, *TransactionData) (*TransactionResponse, error) // contains filtered or unexported methods }
TransactionServiceServer is the server API for TransactionService service. All implementations must embed UnimplementedTransactionServiceServer for forward compatibility
type UnimplementedTransactionServiceServer ¶
type UnimplementedTransactionServiceServer struct { }
UnimplementedTransactionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTransactionServiceServer) TransferMoney ¶
func (UnimplementedTransactionServiceServer) TransferMoney(context.Context, *TransactionData) (*TransactionResponse, error)
type UnsafeTransactionServiceServer ¶
type UnsafeTransactionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServiceServer will result in compilation errors.