ledger

package
v0.0.0-...-d9a8244 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

picked code from hyperledger/fabric

Part of the code is picked from hyperledger/fabric

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockInfo

type BlockInfo struct {
	// contains filtered or unexported fields
}

type ChunkFileInfo

type ChunkFileInfo struct {
	// contains filtered or unexported fields
}

type HLFLedgerHandler

type HLFLedgerHandler struct {
	// contains filtered or unexported fields
}

HLFLedgerHandler implements LedgerHandler to support hyperledger fabric

func (*HLFLedgerHandler) ProcessLedger

func (handler *HLFLedgerHandler) ProcessLedger(ledgerPath string, blockThreshold uint64, verify bool, numThread int, blockPath string) error

ProcessLedger will read the block structures from local ledger path

type LedgerHandler

type LedgerHandler interface {
	ProcessLedger(fileName string, numBlock uint64, verify bool, numThread int, blockPath string) error
}

LedgerHandler will process ledger file

func NewOperator

func NewOperator() LedgerHandler

External pkg can call this method to get a LedgerHandler instance

Jump to

Keyboard shortcuts

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