fabric: github.com/hyperledger/fabric/core/ledger/kvledger/bookkeeping Index | Files

package bookkeeping

import "github.com/hyperledger/fabric/core/ledger/kvledger/bookkeeping"


Package Files

provider.go test_exports.go

type Category Uses

type Category int

Category is an enum type for representing the bookkeeping of different type

const (
    // PvtdataExpiry represents the bookkeeping related to expiry of pvtdata because of BTL policy
    PvtdataExpiry Category = iota
    // MetadataPresenceIndicator maintains the bookkeeping about whether metadata is ever set for a namespace

type Provider Uses

type Provider interface {
    // GetDBHandle returns a db handle that can be used for maintaining the bookkeeping of a given category
    GetDBHandle(ledgerID string, cat Category) *leveldbhelper.DBHandle
    // Close closes the BookkeeperProvider

Provider provides handle to different bookkeepers for the given ledger

func NewProvider Uses

func NewProvider(dbPath string) (Provider, error)

NewProvider instantiates a new provider

type TestEnv Uses

type TestEnv struct {
    TestProvider Provider
    // contains filtered or unexported fields

TestEnv provides the bookkeeper provider env for testing

func NewTestEnv Uses

func NewTestEnv(t testing.TB) *TestEnv

NewTestEnv construct a TestEnv for testing

func (*TestEnv) Cleanup Uses

func (te *TestEnv) Cleanup()

Cleanup cleansup the store env after testing

Package bookkeeping imports 6 packages (graph) and is imported by 5 packages. Updated 2019-11-18. Refresh now. Tools for package owners.