grpc

package
v0.0.0-...-47cfc89 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	api.UnimplementedInvoicesServiceServer
	Logger    *logger.Logger
	Invoices  service.Invoice
	Issuers   service.Issuer
	Investors service.Investor
	Bids      service.Bid
}

Server implements all the methods of InvoicesServiceServer

func (*Server) ApproveTrade

func (s *Server) ApproveTrade(ctx context.Context, req *api.ApproveTradeRequest) (*api.ApproveTradeReply, error)

ApproveTrade approves a trade for an invoice

func (*Server) CreateInvoice

func (s *Server) CreateInvoice(ctx context.Context, req *api.CreateInvoiceRequest) (*api.InvoiceReply, error)

CreateInvoice is responsible for creating a new invoice

func (*Server) GetInvestors

func (s *Server) GetInvestors(ctx context.Context, req *api.GetInvestorsRequest) (*api.InvestorsReply, error)

GetInvestors returns all investors in the system

func (*Server) GetInvoice

func (s *Server) GetInvoice(ctx context.Context, req *api.GetInvoiceRequest) (*api.InvoiceReply, error)

GetInvoice returns an invoice for the specified ID

func (*Server) GetIssuerBalance

func (s *Server) GetIssuerBalance(ctx context.Context, req *api.GetIssuerBalanceRequest) (*api.IssuerBalanceReply, error)

GetIssuerBalance returns the current issuer balance

func (*Server) PlaceBid

func (s *Server) PlaceBid(ctx context.Context, req *api.PlaceBidRequest) (*api.BidReply, error)

PlaceBid handles placing bids

Jump to

Keyboard shortcuts

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