Documentation ¶
Index ¶
- func NewHTTPHandlerStack(srv http.Handler, cors []string, vhosts []string, jwtSecret []byte) http.Handler
- type AdminService
- type BlockchainService
- func (s *BlockchainService) GetBlockByHash(hash string) (*ci_pb.BcBlock, error)
- func (s *BlockchainService) GetBlockByHeight(height uint64) (*ci_pb.BcBlock, error)
- func (s *BlockchainService) GetBlockByTx(txHash string) (*ci_pb.BcBlock, error)
- func (s *BlockchainService) GetHighestBlock() (*ci_pb.BcBlock, error)
- func (s *BlockchainService) GetTxByHash(txHash string) (*ci_pb.Transaction, error)
- func (s *BlockchainService) Syncing() (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdminService ¶
type AdminService struct { }
func (*AdminService) NodeInfo ¶
func (s *AdminService) NodeInfo() (interface{}, error)
type BlockchainService ¶
type BlockchainService struct {
Chain *blockchain.ChainindexBlockchain
}
func (*BlockchainService) GetBlockByHash ¶
func (s *BlockchainService) GetBlockByHash(hash string) (*ci_pb.BcBlock, error)
func (*BlockchainService) GetBlockByHeight ¶
func (s *BlockchainService) GetBlockByHeight(height uint64) (*ci_pb.BcBlock, error)
func (*BlockchainService) GetBlockByTx ¶
func (s *BlockchainService) GetBlockByTx(txHash string) (*ci_pb.BcBlock, error)
func (*BlockchainService) GetHighestBlock ¶
func (s *BlockchainService) GetHighestBlock() (*ci_pb.BcBlock, error)
func (*BlockchainService) GetTxByHash ¶
func (s *BlockchainService) GetTxByHash(txHash string) (*ci_pb.Transaction, error)
func (*BlockchainService) Syncing ¶
func (s *BlockchainService) Syncing() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.