Documentation ¶
Index ¶
- Variables
- type DatabaseConfig
- type DatabaseService
- func (database *DatabaseService) Api() []app.API
- func (database *DatabaseService) CommandFlags() ([]cli.Command, []cli.Flag)
- func (database *DatabaseService) Init(executeContext *app.ExecuteContext) error
- func (database *DatabaseService) LevelDb() dbinterface.KeyValueStore
- func (database *DatabaseService) MemoryDb() dbinterface.KeyValueStore
- func (database *DatabaseService) Name() string
- func (database *DatabaseService) Start(executeContext *app.ExecuteContext) error
- func (database *DatabaseService) Stop(executeContext *app.ExecuteContext) error
- type SnapShot
- type TransactionStore
- func (tDb *TransactionStore) CopyState() *SnapShot
- func (tDb *TransactionStore) Delete(key []byte) error
- func (tDb *TransactionStore) Flush()
- func (tDb *TransactionStore) Get(key []byte) ([]byte, error)
- func (tDb *TransactionStore) Put(key []byte, value []byte) error
- func (tDb *TransactionStore) RevertState(snapShot *SnapShot)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MODULENAME = "database" DataDirFlag = common.DirectoryFlag{ Name: "datadir", Usage: "Directory for the database dir (default = inside the homedir)", } )
Functions ¶
This section is empty.
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct { }
type DatabaseService ¶
type DatabaseService struct { Config *DatabaseConfig // contains filtered or unexported fields }
func NewDatabaseService ¶
func NewDatabaseService(db dbinterface.KeyValueStore) *DatabaseService
func (*DatabaseService) Api ¶
func (database *DatabaseService) Api() []app.API
func (*DatabaseService) CommandFlags ¶
func (database *DatabaseService) CommandFlags() ([]cli.Command, []cli.Flag)
func (*DatabaseService) Init ¶
func (database *DatabaseService) Init(executeContext *app.ExecuteContext) error
func (*DatabaseService) LevelDb ¶
func (database *DatabaseService) LevelDb() dbinterface.KeyValueStore
func (*DatabaseService) MemoryDb ¶
func (database *DatabaseService) MemoryDb() dbinterface.KeyValueStore
func (*DatabaseService) Name ¶
func (database *DatabaseService) Name() string
func (*DatabaseService) Start ¶
func (database *DatabaseService) Start(executeContext *app.ExecuteContext) error
func (*DatabaseService) Stop ¶
func (database *DatabaseService) Stop(executeContext *app.ExecuteContext) error
type TransactionStore ¶
type TransactionStore struct {
// contains filtered or unexported fields
}
func NewTransactionStore ¶
func NewTransactionStore(trie *trie.SecureTrie) *TransactionStore
func (*TransactionStore) CopyState ¶
func (tDb *TransactionStore) CopyState() *SnapShot
func (*TransactionStore) Delete ¶
func (tDb *TransactionStore) Delete(key []byte) error
func (*TransactionStore) Flush ¶
func (tDb *TransactionStore) Flush()
func (*TransactionStore) RevertState ¶
func (tDb *TransactionStore) RevertState(snapShot *SnapShot)
Directories ¶
Path | Synopsis |
---|---|
Package ethdb defines the interfaces for an Ethereum data store.
|
Package ethdb defines the interfaces for an Ethereum data store. |
Package leveldb implements the key-value database layer based on LevelDB.
|
Package leveldb implements the key-value database layer based on LevelDB. |
Package memorydb implements the key-value database layer based on memory maps.
|
Package memorydb implements the key-value database layer based on memory maps. |
Click to show internal directories.
Click to hide internal directories.