datafiles

package
v0.0.0-...-209a15d Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 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) (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL