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 MoneyTransaction_MakeTransactionClient
- type MoneyTransaction_MakeTransactionServer
- 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
- func (*TransactionResponse) Descriptor() ([]byte, []int)
- func (m *TransactionResponse) GetDescription() string
- func (m *TransactionResponse) GetStatus() string
- func (m *TransactionResponse) GetStep() int32
- func (*TransactionResponse) ProtoMessage()
- func (m *TransactionResponse) Reset()
- func (m *TransactionResponse) String() string
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) (MoneyTransaction_MakeTransactionClient, error)
}
func NewMoneyTransactionClient ¶
func NewMoneyTransactionClient(cc *grpc.ClientConn) MoneyTransactionClient
type MoneyTransactionServer ¶
type MoneyTransactionServer interface {
MakeTransaction(*TransactionRequest, MoneyTransaction_MakeTransactionServer) error
}
type MoneyTransaction_MakeTransactionClient ¶
type MoneyTransaction_MakeTransactionClient interface { Recv() (*TransactionResponse, error) grpc.ClientStream }
type MoneyTransaction_MakeTransactionServer ¶
type MoneyTransaction_MakeTransactionServer interface { Send(*TransactionResponse) error grpc.ServerStream }
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 { Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` Step int32 `protobuf:"varint,2,opt,name=step" json:"step,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` }
func (*TransactionResponse) Descriptor ¶
func (*TransactionResponse) Descriptor() ([]byte, []int)
func (*TransactionResponse) GetDescription ¶
func (m *TransactionResponse) GetDescription() string
func (*TransactionResponse) GetStatus ¶
func (m *TransactionResponse) GetStatus() string
func (*TransactionResponse) GetStep ¶
func (m *TransactionResponse) GetStep() int32
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.