contracteventdb

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractEventDB

type ContractEventDB interface {

	// CommitBlock
	//  @Description: commits the event in an atomic operation
	//  @param blockInfo
	//  @param isCache
	//  @return error
	CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error

	// InitGenesis
	//  @Description: init contract event db
	//  @param genesis
	//  @return error
	InitGenesis(genesis *serialization.BlockWithSerializedInfo) error

	// GetLastSavepoint
	//  @Description: returns the last block height
	//  @return uint64
	//  @return error
	GetLastSavepoint() (uint64, error)

	// Close
	//  @Description: Close is used to close database
	Close()

	// GetSnapshotFile  for dumping data from mysql to a file
	GetSnapshotFile() (string, error)

	// GetDumpDir return path of dump file
	GetDumpDir() string
}

ContractEventDB provides handle to contract event

@Description:

This implementation provides a mysql based data model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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