Documentation ¶
Overview ¶
**************************************************************
- @file 程序文件名称
- @brief 程序文件的功能
- @author wsw
- @version v1
- @date 2021.12.20 *************************************************************
Index ¶
- func NewLedgerOp(other *models.Other, sdk *fabsdk.FabricSDK) internalfabsdk.Ledger
- type LedgerOp
- func (l *LedgerOp) QueryBlock(channelID string, orgInfo *models.PeerOrgInfo, blockNum uint64) (interface{}, error)
- func (l *LedgerOp) QueryBlockByHash(channelID string, orgInfo *models.PeerOrgInfo, hash string) (interface{}, error)
- func (l *LedgerOp) QueryBlockByTxId(channelID string, orgInfo *models.PeerOrgInfo, txid string) (interface{}, error)
- func (l *LedgerOp) QueryBlockNum(channelID string, orgInfo *models.PeerOrgInfo) (uint64, error)
- func (l *LedgerOp) QueryConfig(channelID string, orgInfo *models.PeerOrgInfo) (interface{}, error)
- func (l *LedgerOp) QueryLedger(channelID string, orgInfo *models.PeerOrgInfo) (interface{}, error)
- func (l *LedgerOp) QueryTx(channelID string, orgInfo *models.PeerOrgInfo, txID string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLedgerOp ¶
**************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
Types ¶
type LedgerOp ¶
type LedgerOp struct {
// contains filtered or unexported fields
}
func (*LedgerOp) QueryBlock ¶
func (l *LedgerOp) QueryBlock(channelID string, orgInfo *models.PeerOrgInfo, blockNum uint64) (interface{}, error)
查询最新块 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
func (*LedgerOp) QueryBlockByHash ¶
func (l *LedgerOp) QueryBlockByHash(channelID string, orgInfo *models.PeerOrgInfo, hash string) (interface{}, error)
根据块高查询块 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
func (*LedgerOp) QueryBlockByTxId ¶
func (l *LedgerOp) QueryBlockByTxId(channelID string, orgInfo *models.PeerOrgInfo, txid string) (interface{}, error)
根据交易id查询块 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
func (*LedgerOp) QueryBlockNum ¶
查询块高 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
func (*LedgerOp) QueryConfig ¶
func (l *LedgerOp) QueryConfig(channelID string, orgInfo *models.PeerOrgInfo) (interface{}, error)
查询配置块 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
func (*LedgerOp) QueryLedger ¶
func (l *LedgerOp) QueryLedger(channelID string, orgInfo *models.PeerOrgInfo) (interface{}, error)
查询账本 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************
func (*LedgerOp) QueryTx ¶
func (l *LedgerOp) QueryTx(channelID string, orgInfo *models.PeerOrgInfo, txID string) (interface{}, error)
根据交易id查询交易 **************************************************************
- @brief 函数作用
- @param 参数
- @note 备注
- @Sample usage: 函数的使用方法
*************************************************************