Documentation ¶
Index ¶
- Constants
- func SetParsers(m map[string]abchainTx.TxArgParser)
- type BlockChainRouter
- type ChainBlock
- type ChainTransaction
- type ChainTxEvents
- type FabricBlockChain
- func (s *FabricBlockChain) GetBlock(rw web.ResponseWriter, req *web.Request)
- func (s *FabricBlockChain) GetBlockchainInfo(rw web.ResponseWriter, req *web.Request)
- func (s *FabricBlockChain) GetTransaction(rw web.ResponseWriter, req *web.Request)
- func (s *FabricBlockChain) ParseTransaction(rw web.ResponseWriter, req *web.Request)
Constants ¶
View Source
const ( FabricProxy_BlockHeight = "height" FabricProxy_TransactionID = "txID" )
Variables ¶
This section is empty.
Functions ¶
func SetParsers ¶
func SetParsers(m map[string]abchainTx.TxArgParser)
Types ¶
type BlockChainRouter ¶
func CreateBlockChainRouter ¶
func CreateBlockChainRouter(root util.RPCRouter, path string) BlockChainRouter
func (BlockChainRouter) BuildRoutes ¶
func (r BlockChainRouter) BuildRoutes()
func (BlockChainRouter) Init ¶
func (r BlockChainRouter) Init(cf func() (client.ChainInfo, error)) BlockChainRouter
type ChainBlock ¶
type ChainBlock struct { *client.ChainBlock Transactions []*ChainTransaction `json:",omitempty"` TxEvents []*ChainTxEvents `json:",omitempty"` }
type ChainTransaction ¶
type ChainTransaction struct { *client.ChainTransaction //Data for the original protobuf input (Message part) and Detail left for parser ChaincodeModule, Nonce string TimeLock string `json:"expiredAt,omitempty"` Detail, Data interface{} `json:",omitempty"` TxHash string `json:",omitempty"` }
type ChainTxEvents ¶
type ChainTxEvents struct { *client.ChainTxEvents Detail, Data interface{} `json:",omitempty"` }
type FabricBlockChain ¶
type FabricBlockChain struct { *util.FabricRPCBase // contains filtered or unexported fields }
func (*FabricBlockChain) GetBlock ¶
func (s *FabricBlockChain) GetBlock(rw web.ResponseWriter, req *web.Request)
func (*FabricBlockChain) GetBlockchainInfo ¶
func (s *FabricBlockChain) GetBlockchainInfo(rw web.ResponseWriter, req *web.Request)
func (*FabricBlockChain) GetTransaction ¶
func (s *FabricBlockChain) GetTransaction(rw web.ResponseWriter, req *web.Request)
func (*FabricBlockChain) ParseTransaction ¶
func (s *FabricBlockChain) ParseTransaction(rw web.ResponseWriter, req *web.Request)
Click to show internal directories.
Click to hide internal directories.