Documentation ¶
Overview ¶
Package datafiles is a generated protocol buffer package.
It is generated from these files:
transaction.proto
It has these top-level messages:
TransactionRequest TransactionResponse
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
- type TransactionResponse
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)
}
func NewMoneyTransactionClient ¶
func NewMoneyTransactionClient(cc *grpc.ClientConn) MoneyTransactionClient
type MoneyTransactionServer ¶
type MoneyTransactionServer interface {
MakeTransaction(context.Context, *TransactionRequest) (*TransactionResponse, error)
}
type TransactionRequest ¶
type TransactionRequest struct { From string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"` Amount float32 `protobuf:"fixed32,3,opt,name=amount" json:"amount,omitempty"` }
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
type TransactionResponse ¶
type TransactionResponse struct {
Confirmation bool `protobuf:"varint,1,opt,name=confirmation" json:"confirmation,omitempty"`
}
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
Click to show internal directories.
Click to hide internal directories.