Documentation ¶
Index ¶
Constants ¶
View Source
const ( TxStatus_Success = 0 TxStatus_Fail = 1 )
Variables ¶
View Source
var ChainProxy_Impls = map[string]func() ChainClient{}
View Source
var Client_Impls = map[string]func() RpcClient{}
Functions ¶
func NewFabricRPCConfig ¶
func NewFabricRPCConfig(ccN string) *fabricRPCCfg
Types ¶
type ChainBlock ¶
type ChainBlock struct { Height int64 `json:",string"` Hash string `json:",omitempty"` PreviousHash string TimeStamp time.Time `json:",omitempty"` Transactions []*ChainTransaction `json:"-"` TxEvents []*ChainTxEvents `json:"-"` }
type ChainClient ¶
type ChainInfo ¶
type ChainInfo interface { GetChain() (*Chain, error) GetBlock(int64) (*ChainBlock, error) GetTransaction(string) (*ChainTransaction, error) GetTxEvent(string) ([]*ChainTxEvents, error) }
type ChainTransaction ¶
type ChainTxEvents ¶
Click to show internal directories.
Click to hide internal directories.