Documentation ¶
Index ¶
- type InMemoryDatabase
- func (d *InMemoryDatabase) Clear() error
- func (d *InMemoryDatabase) Close() error
- func (d *InMemoryDatabase) Delete(version int64) error
- func (d *InMemoryDatabase) DeleteRange(fromVersion, toVersion int64) error
- func (d *InMemoryDatabase) FindVersionByBlockHeight(blockHeight uint64) (int64, error)
- func (d *InMemoryDatabase) IsEmpty() bool
- func (d *InMemoryDatabase) Load(version int64) (*tmtypes.Snapshot, error)
- func (d *InMemoryDatabase) Save(version int64, state *tmtypes.Snapshot) error
- type LevelDBDatabase
- func (d *LevelDBDatabase) Clear() error
- func (d *LevelDBDatabase) Close() error
- func (d *LevelDBDatabase) Delete(version int64) error
- func (d *LevelDBDatabase) DeleteRange(fromVersion, toVersion int64) error
- func (d *LevelDBDatabase) FindVersionByBlockHeight(blockHeight uint64) (int64, error)
- func (d *LevelDBDatabase) IsEmpty() bool
- func (d *LevelDBDatabase) Load(version int64) (*tmtypes.Snapshot, error)
- func (d *LevelDBDatabase) Save(version int64, state *tmtypes.Snapshot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryDatabase ¶ added in v0.73.0
type InMemoryDatabase struct {
// contains filtered or unexported fields
}
func NewInMemoryDatabase ¶ added in v0.73.0
func NewInMemoryDatabase() *InMemoryDatabase
func (*InMemoryDatabase) Clear ¶ added in v0.73.0
func (d *InMemoryDatabase) Clear() error
func (*InMemoryDatabase) Close ¶ added in v0.73.0
func (d *InMemoryDatabase) Close() error
func (*InMemoryDatabase) Delete ¶ added in v0.73.0
func (d *InMemoryDatabase) Delete(version int64) error
func (*InMemoryDatabase) DeleteRange ¶ added in v0.73.0
func (d *InMemoryDatabase) DeleteRange(fromVersion, toVersion int64) error
func (*InMemoryDatabase) FindVersionByBlockHeight ¶ added in v0.73.0
func (d *InMemoryDatabase) FindVersionByBlockHeight(blockHeight uint64) (int64, error)
func (*InMemoryDatabase) IsEmpty ¶ added in v0.73.0
func (d *InMemoryDatabase) IsEmpty() bool
type LevelDBDatabase ¶ added in v0.73.0
type LevelDBDatabase struct {
// contains filtered or unexported fields
}
func NewLevelDBDatabase ¶ added in v0.73.0
func NewLevelDBDatabase(vegaPaths paths.Paths) (*LevelDBDatabase, error)
func (*LevelDBDatabase) Clear ¶ added in v0.73.0
func (d *LevelDBDatabase) Clear() error
func (*LevelDBDatabase) Close ¶ added in v0.73.0
func (d *LevelDBDatabase) Close() error
func (*LevelDBDatabase) Delete ¶ added in v0.73.0
func (d *LevelDBDatabase) Delete(version int64) error
func (*LevelDBDatabase) DeleteRange ¶ added in v0.73.0
func (d *LevelDBDatabase) DeleteRange(fromVersion, toVersion int64) error
func (*LevelDBDatabase) FindVersionByBlockHeight ¶ added in v0.73.0
func (d *LevelDBDatabase) FindVersionByBlockHeight(blockHeight uint64) (int64, error)
func (*LevelDBDatabase) IsEmpty ¶ added in v0.73.0
func (d *LevelDBDatabase) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.