Documentation ¶
Index ¶
- func RegisterMoneyTransactionServer(s *grpc.Server, srv MoneyTransactionServer)
- type MoneyTransactionClient
- type MoneyTransactionServer
- type TransactionRequest
- func (*TransactionRequest) Descriptor() ([]byte, []int)
- func (m *TransactionRequest) GetAmount() float32
- func (m *TransactionRequest) GetFrom() string
- func (m *TransactionRequest) GetTo() string
- func (*TransactionRequest) ProtoMessage()
- func (m *TransactionRequest) Reset()
- func (m *TransactionRequest) String() string
- func (m *TransactionRequest) XXX_DiscardUnknown()
- func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionRequest) XXX_Merge(src proto.Message)
- func (m *TransactionRequest) XXX_Size() int
- func (m *TransactionRequest) XXX_Unmarshal(b []byte) error
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)
- func (m *TransactionResponse) GetConfirmation() bool
- func (*TransactionResponse) ProtoMessage()
- func (m *TransactionResponse) Reset()
- func (m *TransactionResponse) String() string
- func (m *TransactionResponse) XXX_DiscardUnknown()
- func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionResponse) XXX_Merge(src proto.Message)
- func (m *TransactionResponse) XXX_Size() int
- func (m *TransactionResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMoneyTransactionServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMoneyTransactionServer ¶
func RegisterMoneyTransactionServer(s *grpc.Server, srv MoneyTransactionServer)
Types ¶
type MoneyTransactionClient ¶
type MoneyTransactionClient interface {
MakeTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
}
MoneyTransactionClient is the client API for MoneyTransaction service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMoneyTransactionClient ¶
func NewMoneyTransactionClient(cc grpc.ClientConnInterface) MoneyTransactionClient
type MoneyTransactionServer ¶
type MoneyTransactionServer interface {
MakeTransaction(context.Context, *TransactionRequest) (*TransactionResponse, error)
}
MoneyTransactionServer is the server API for MoneyTransaction service.
type TransactionRequest ¶
type TransactionRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount float32 `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionRequest) Descriptor ¶
func (*TransactionRequest) Descriptor() ([]byte, []int)
func (*TransactionRequest) GetAmount ¶
func (m *TransactionRequest) GetAmount() float32
func (*TransactionRequest) GetFrom ¶
func (m *TransactionRequest) GetFrom() string
func (*TransactionRequest) GetTo ¶
func (m *TransactionRequest) GetTo() string
func (*TransactionRequest) ProtoMessage ¶
func (*TransactionRequest) ProtoMessage()
func (*TransactionRequest) Reset ¶
func (m *TransactionRequest) Reset()
func (*TransactionRequest) String ¶
func (m *TransactionRequest) String() string
func (*TransactionRequest) XXX_DiscardUnknown ¶
func (m *TransactionRequest) XXX_DiscardUnknown()
func (*TransactionRequest) XXX_Marshal ¶
func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionRequest) XXX_Merge ¶
func (m *TransactionRequest) XXX_Merge(src proto.Message)
func (*TransactionRequest) XXX_Size ¶
func (m *TransactionRequest) XXX_Size() int
func (*TransactionRequest) XXX_Unmarshal ¶
func (m *TransactionRequest) XXX_Unmarshal(b []byte) error
type TransactionResponse ¶
type TransactionResponse struct { Confirmation bool `protobuf:"varint,1,opt,name=confirmation,proto3" json:"confirmation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionResponse) Descriptor ¶
func (*TransactionResponse) Descriptor() ([]byte, []int)
func (*TransactionResponse) GetConfirmation ¶
func (m *TransactionResponse) GetConfirmation() bool
func (*TransactionResponse) ProtoMessage ¶
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) Reset ¶
func (m *TransactionResponse) Reset()
func (*TransactionResponse) String ¶
func (m *TransactionResponse) String() string
func (*TransactionResponse) XXX_DiscardUnknown ¶
func (m *TransactionResponse) XXX_DiscardUnknown()
func (*TransactionResponse) XXX_Marshal ¶
func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionResponse) XXX_Merge ¶
func (m *TransactionResponse) XXX_Merge(src proto.Message)
func (*TransactionResponse) XXX_Size ¶
func (m *TransactionResponse) XXX_Size() int
func (*TransactionResponse) XXX_Unmarshal ¶
func (m *TransactionResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMoneyTransactionServer ¶
type UnimplementedMoneyTransactionServer struct { }
UnimplementedMoneyTransactionServer can be embedded to have forward compatible implementations.
func (*UnimplementedMoneyTransactionServer) MakeTransaction ¶
func (*UnimplementedMoneyTransactionServer) MakeTransaction(ctx context.Context, req *TransactionRequest) (*TransactionResponse, error)
Click to show internal directories.
Click to hide internal directories.