datafiles

package
Version: v0.0.0-...-cbd92a3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 5 Imported by: 0

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL