Documentation ¶
Index ¶
- type BlockChainServer
- func (bcs *BlockChainServer) Consensus(ctx context.Context, req *protogen.Empty) (*protogen.StatusResponse, error)
- func (bcs *BlockChainServer) CreateTransaction(ctx context.Context, req *protogen.TransactionRequest) (*protogen.StatusResponse, error)
- func (bcs *BlockChainServer) DeleteTransaction(ctx context.Context, req *protogen.Empty) (*protogen.StatusResponse, error)
- func (bcs *BlockChainServer) GetBlockChain(ctx context.Context, req *protogen.Empty) (*protogen.GetBlockChainResponse, error)
- func (bcs *BlockChainServer) ListTransactions(ctx context.Context, req *protogen.Empty) (*protogen.ListTransactionsResponse, error)
- func (bcs *BlockChainServer) RunGatewayServer()
- func (bcs *BlockChainServer) RunGrpcServer()
- func (s *BlockChainServer) StopGrpcServer()
- func (bcs *BlockChainServer) UpdateTransaction(ctx context.Context, req *protogen.TransactionRequest) (*protogen.StatusResponse, error)
- func (bcs *BlockChainServer) WalletBalance(ctx context.Context, req *protogen.BalanceRequest) (*protogen.BalanceResponse, error)
- type WalletServer
- func (ws *WalletServer) CreateTransaction(ctx context.Context, req *protogen.WalletTransactionRequest) (*protogen.StatusResponse, error)
- func (ws *WalletServer) CreateWallet(ctx context.Context, req *protogen.Empty) (*protogen.CreateWalletResponse, error)
- func (s *WalletServer) RunGatewayServer()
- func (s *WalletServer) RunGrpcServer()
- func (s *WalletServer) StopGrpcServer()
- func (ws *WalletServer) WalletBalance(ctx context.Context, req *protogen.BalanceRequest) (*protogen.BalanceResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockChainServer ¶
type BlockChainServer struct { protogen.UnimplementedBlockChainServiceServer // contains filtered or unexported fields }
func NewBlockChainServer ¶
func NewBlockChainServer(blockChainService service.BlockChainService, config config.Config) *BlockChainServer
func (*BlockChainServer) Consensus ¶
func (bcs *BlockChainServer) Consensus(ctx context.Context, req *protogen.Empty) (*protogen.StatusResponse, error)
func (*BlockChainServer) CreateTransaction ¶
func (bcs *BlockChainServer) CreateTransaction(ctx context.Context, req *protogen.TransactionRequest) (*protogen.StatusResponse, error)
func (*BlockChainServer) DeleteTransaction ¶
func (bcs *BlockChainServer) DeleteTransaction(ctx context.Context, req *protogen.Empty) (*protogen.StatusResponse, error)
func (*BlockChainServer) GetBlockChain ¶
func (bcs *BlockChainServer) GetBlockChain(ctx context.Context, req *protogen.Empty) (*protogen.GetBlockChainResponse, error)
func (*BlockChainServer) ListTransactions ¶
func (bcs *BlockChainServer) ListTransactions(ctx context.Context, req *protogen.Empty) (*protogen.ListTransactionsResponse, error)
func (*BlockChainServer) RunGatewayServer ¶
func (bcs *BlockChainServer) RunGatewayServer()
func (*BlockChainServer) RunGrpcServer ¶
func (bcs *BlockChainServer) RunGrpcServer()
func (*BlockChainServer) StopGrpcServer ¶
func (s *BlockChainServer) StopGrpcServer()
func (*BlockChainServer) UpdateTransaction ¶
func (bcs *BlockChainServer) UpdateTransaction(ctx context.Context, req *protogen.TransactionRequest) (*protogen.StatusResponse, error)
func (*BlockChainServer) WalletBalance ¶
func (bcs *BlockChainServer) WalletBalance(ctx context.Context, req *protogen.BalanceRequest) (*protogen.BalanceResponse, error)
type WalletServer ¶
type WalletServer struct { protogen.UnimplementedWalletServiceServer // contains filtered or unexported fields }
func NewWalletServer ¶
func NewWalletServer(walletService service.WalletService, config config.Config) *WalletServer
func (*WalletServer) CreateTransaction ¶
func (ws *WalletServer) CreateTransaction(ctx context.Context, req *protogen.WalletTransactionRequest) (*protogen.StatusResponse, error)
func (*WalletServer) CreateWallet ¶
func (ws *WalletServer) CreateWallet(ctx context.Context, req *protogen.Empty) (*protogen.CreateWalletResponse, error)
func (*WalletServer) RunGatewayServer ¶
func (s *WalletServer) RunGatewayServer()
func (*WalletServer) RunGrpcServer ¶
func (s *WalletServer) RunGrpcServer()
func (*WalletServer) StopGrpcServer ¶
func (s *WalletServer) StopGrpcServer()
func (*WalletServer) WalletBalance ¶
func (ws *WalletServer) WalletBalance(ctx context.Context, req *protogen.BalanceRequest) (*protogen.BalanceResponse, error)
Click to show internal directories.
Click to hide internal directories.