db

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_NUM = 1000

Variables

View Source
var (
	BKTCheck                = []byte("Check")
	BKTRetry                = []byte("Retry")
	BKTPolyPublicKeysSorted = []byte("PPKS")

	BKTNeoCheck = []byte("NeoCheck")
	BKTNeoRetry = []byte("NeoRetry")

	BKTHeader     = []byte("Header")     // bucket header
	BKTHeightList = []byte("HeightList") // bucket header height list
)
View Source
var Log = log.Log

Functions

This section is empty.

Types

type BoltDB

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

func NewBoltDB

func NewBoltDB(filePath string) (*BoltDB, error)

func (*BoltDB) Close

func (w *BoltDB) Close()

func (*BoltDB) DeleteCheck

func (w *BoltDB) DeleteCheck(txHash string) error

func (*BoltDB) DeleteNeoCheck added in v1.0.0

func (w *BoltDB) DeleteNeoCheck(neoTxHash string) error

func (*BoltDB) DeleteNeoRetry

func (w *BoltDB) DeleteNeoRetry(k []byte) error

func (*BoltDB) DeleteRetry

func (w *BoltDB) DeleteRetry(k []byte) error

func (*BoltDB) GetAllCheck

func (w *BoltDB) GetAllCheck() (map[string][]byte, error)

func (*BoltDB) GetAllNeoRetry

func (w *BoltDB) GetAllNeoRetry() ([][]byte, error)

func (*BoltDB) GetAllRetry

func (w *BoltDB) GetAllRetry() ([][]byte, error)

func (*BoltDB) GetNeoAllCheck added in v1.0.0

func (w *BoltDB) GetNeoAllCheck() (map[string][]byte, error)

func (*BoltDB) GetPPKS

func (w *BoltDB) GetPPKS() ([]byte, error)

func (*BoltDB) PutCheck

func (w *BoltDB) PutCheck(txHash string, v []byte) error

func (*BoltDB) PutNeoCheck added in v1.0.0

func (w *BoltDB) PutNeoCheck(neoTxHash string, v []byte) error

func (*BoltDB) PutNeoRetry

func (w *BoltDB) PutNeoRetry(k []byte) error

func (*BoltDB) PutPPKS

func (w *BoltDB) PutPPKS(v []byte) error

func (*BoltDB) PutRetry

func (w *BoltDB) PutRetry(k []byte) error

type NeoUtxo

type NeoUtxo struct {
	TxId  string
	Index int
}

func (*NeoUtxo) Deserialization

func (this *NeoUtxo) Deserialization(source *common.ZeroCopySource) error

func (*NeoUtxo) Serialization

func (this *NeoUtxo) Serialization(sink *common.ZeroCopySink)

type Retry

type Retry struct {
	Height uint32
	Key    string
}

func (*Retry) Deserialization

func (this *Retry) Deserialization(source *common.ZeroCopySource) error

func (*Retry) Serialization

func (this *Retry) Serialization(sink *common.ZeroCopySink)

Jump to

Keyboard shortcuts

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