Documentation ¶
Index ¶
- type Server
- func (s *Server) ApproveTrade(ctx context.Context, req *api.ApproveTradeRequest) (*api.ApproveTradeReply, error)
- func (s *Server) CreateInvoice(ctx context.Context, req *api.CreateInvoiceRequest) (*api.InvoiceReply, error)
- func (s *Server) GetInvestors(ctx context.Context, req *api.GetInvestorsRequest) (*api.InvestorsReply, error)
- func (s *Server) GetInvoice(ctx context.Context, req *api.GetInvoiceRequest) (*api.InvoiceReply, error)
- func (s *Server) GetIssuerBalance(ctx context.Context, req *api.GetIssuerBalanceRequest) (*api.IssuerBalanceReply, error)
- func (s *Server) PlaceBid(ctx context.Context, req *api.PlaceBidRequest) (*api.BidReply, error)
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
Click to show internal directories.
Click to hide internal directories.