ledgerimpl

package
v0.0.0-...-c716174 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

**************************************************************

  • @file 程序文件名称
  • @brief 程序文件的功能
  • @author wsw
  • @version v1
  • @date 2021.12.20 *************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLedgerOp

func NewLedgerOp(other *models.Other, sdk *fabsdk.FabricSDK) internalfabsdk.Ledger

**************************************************************

  • @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

func (l *LedgerOp) QueryBlockNum(channelID string, orgInfo *models.PeerOrgInfo) (uint64, error)

查询块高 **************************************************************

  • @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: 函数的使用方法

*************************************************************

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL