storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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 LevelDB

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

LevelDB 存储到levelDB

func NewLevelDB

func NewLevelDB(db *leveldb.DB, queue *common.Queue) *LevelDB

NewLevelDB 创建levelDB

func (*LevelDB) Get

func (l *LevelDB) Get(txId string) (*recorder.Transaction, error)

Get 获取transaction

func (*LevelDB) GetBytes

func (l *LevelDB) GetBytes(txId string) ([]byte, error)

GetBytes 获取transaction序列化的bytes

func (*LevelDB) Put

func (l *LevelDB) Put(tx *recorder.Transaction) error

Put 保存transaction

Jump to

Keyboard shortcuts

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