Documentation
¶
Index ¶
- func GetBlockTxCount(blockHash [32]byte) (int64, error)
- type Server
- func (s *Server) GetBalance(_ context.Context, address *network_pb.Address) (*network_pb.BalanceReply, error)
- func (s *Server) GetBlockByHash(_ context.Context, req *network_pb.BlockHashRequest) (*network_pb.BlockInfo, error)
- func (s *Server) GetBlockByHeight(_ context.Context, req *network_pb.BlockRequest) (*network_pb.BlockInfo, error)
- func (s *Server) GetBlockInfos(_ context.Context, req *network_pb.BlockRequest) (*network_pb.BlockInfoReply, error)
- func (s *Server) GetBlockTxs(_ context.Context, req *network_pb.BlockTxRequest) (*network_pb.BlockTxResponse, error)
- func (s *Server) GetDoubleSpends(_ context.Context, req *network_pb.DoubleSpendRequest) (*network_pb.DoubleSpendResponse, error)
- func (s *Server) GetHeightBlocks(_ context.Context, req *network_pb.BlockHeightRequest) (*network_pb.BlockHeightResponse, error)
- func (s *Server) GetMempoolTxs(_ context.Context, req *network_pb.MempoolTxRequest) (*network_pb.MempoolTxResponse, error)
- func (s *Server) GetOutputInputs(ctx context.Context, req *network_pb.OutputInputsRequest) (*network_pb.OutputInputsResponse, error)
- func (s *Server) GetTx(ctx context.Context, req *network_pb.TxRequest) (*network_pb.TxReply, error)
- func (s *Server) GetTxBlock(ctx context.Context, req *network_pb.TxBlockRequest) (*network_pb.TxBlockReply, error)
- func (s *Server) GetUtxos(_ context.Context, req *network_pb.UtxosRequest) (*network_pb.UtxosResponse, error)
- func (s *Server) ListenTx(ctx context.Context, req *network_pb.TxRequest) (*network_pb.ListenTxReply, error)
- func (s *Server) OutputMessage(_ context.Context, stringMessage *network_pb.StringMessage) (*network_pb.ErrorReply, error)
- func (s *Server) Run() error
- func (s *Server) SaveTxBlock(ctx context.Context, txBlock *network_pb.TxBlock) (*network_pb.ErrorReply, error)
- func (s *Server) SaveTxs(ctx context.Context, txs *network_pb.Txs) (*network_pb.SaveTxsReply, error)
- func (s *Server) Serve() error
- func (s *Server) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockTxCount ¶
Types ¶
type Server ¶
type Server struct {
network_pb.UnimplementedNetworkServer
Verbose bool
Port int
// contains filtered or unexported fields
}
func (*Server) GetBalance ¶
func (s *Server) GetBalance(_ context.Context, address *network_pb.Address) (*network_pb.BalanceReply, error)
func (*Server) GetBlockByHash ¶
func (s *Server) GetBlockByHash(_ context.Context, req *network_pb.BlockHashRequest) (*network_pb.BlockInfo, error)
func (*Server) GetBlockByHeight ¶
func (s *Server) GetBlockByHeight(_ context.Context, req *network_pb.BlockRequest) (*network_pb.BlockInfo, error)
func (*Server) GetBlockInfos ¶
func (s *Server) GetBlockInfos(_ context.Context, req *network_pb.BlockRequest) (*network_pb.BlockInfoReply, error)
func (*Server) GetBlockTxs ¶
func (s *Server) GetBlockTxs(_ context.Context, req *network_pb.BlockTxRequest) (*network_pb.BlockTxResponse, error)
func (*Server) GetDoubleSpends ¶
func (s *Server) GetDoubleSpends(_ context.Context, req *network_pb.DoubleSpendRequest) (*network_pb.DoubleSpendResponse, error)
func (*Server) GetHeightBlocks ¶
func (s *Server) GetHeightBlocks(_ context.Context, req *network_pb.BlockHeightRequest) (*network_pb.BlockHeightResponse, error)
func (*Server) GetMempoolTxs ¶
func (s *Server) GetMempoolTxs(_ context.Context, req *network_pb.MempoolTxRequest) (*network_pb.MempoolTxResponse, error)
func (*Server) GetOutputInputs ¶
func (s *Server) GetOutputInputs(ctx context.Context, req *network_pb.OutputInputsRequest) (*network_pb.OutputInputsResponse, error)
func (*Server) GetTx ¶
func (s *Server) GetTx(ctx context.Context, req *network_pb.TxRequest) (*network_pb.TxReply, error)
func (*Server) GetTxBlock ¶
func (s *Server) GetTxBlock(ctx context.Context, req *network_pb.TxBlockRequest) (*network_pb.TxBlockReply, error)
func (*Server) GetUtxos ¶
func (s *Server) GetUtxos(_ context.Context, req *network_pb.UtxosRequest) (*network_pb.UtxosResponse, error)
func (*Server) ListenTx ¶
func (s *Server) ListenTx(ctx context.Context, req *network_pb.TxRequest) (*network_pb.ListenTxReply, error)
func (*Server) OutputMessage ¶
func (s *Server) OutputMessage(_ context.Context, stringMessage *network_pb.StringMessage) (*network_pb.ErrorReply, error)
func (*Server) SaveTxBlock ¶
func (s *Server) SaveTxBlock(ctx context.Context, txBlock *network_pb.TxBlock) (*network_pb.ErrorReply, error)
func (*Server) SaveTxs ¶
func (s *Server) SaveTxs(ctx context.Context, txs *network_pb.Txs) (*network_pb.SaveTxsReply, error)
Click to show internal directories.
Click to hide internal directories.