bookkeeping

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category int

Category是一个枚举类型,用于表示不同类型的簿记。

const (
	//pvtdata expiry根据btl策略重新记录与pvtdata到期相关的簿记。
	PvtdataExpiry Category = iota
	//MetadataPresenceIndicator维护有关是否为命名空间设置元数据的簿记。
	MetadataPresenceIndicator
)

type Provider

type Provider interface {
	//getdbhandle返回可用于维护给定类别的簿记的db handle
	GetDBHandle(ledgerID string, cat Category) *leveldbhelper.DBHandle
	//关闭关闭BookkeepProvider
	Close()
}

提供者为给定的分类帐向不同的簿记员提供处理

func NewProvider

func NewProvider() Provider

NewProvider实例化新的提供程序

type TestEnv

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

testenv为测试提供簿记提供者env

func NewTestEnv

func NewTestEnv(t testing.TB) *TestEnv

newtestenv构造用于测试的testenv

func (*TestEnv) Cleanup

func (env *TestEnv) Cleanup()

清理测试后清理存储环境

Jump to

Keyboard shortcuts

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