eventsdb

package
v1.0.3-testnet Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB added in v0.19.0

func InitDB(cfg *config.Config)

Types

type EventsDB

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

func NewEventsDB

func NewEventsDB(db db.DB) *EventsDB

func (*EventsDB) AddEvent added in v0.3.4

func (db *EventsDB) AddEvent(height uint64, event e.Event)

func (*EventsDB) FlushEvents added in v0.3.4

func (db *EventsDB) FlushEvents() error

func (*EventsDB) LoadEvents added in v0.5.0

func (db *EventsDB) LoadEvents(height uint64) e.Events

type IEventsDB added in v0.19.0

type IEventsDB interface {
	AddEvent(height uint64, event e.Event)
	LoadEvents(height uint64) e.Events
	FlushEvents() error
}

func GetCurrent

func GetCurrent() IEventsDB

type NOOPEventsDB added in v0.19.0

type NOOPEventsDB struct {
}

func (NOOPEventsDB) AddEvent added in v0.19.0

func (NOOPEventsDB) AddEvent(height uint64, event e.Event)

func (NOOPEventsDB) FlushEvents added in v0.19.0

func (NOOPEventsDB) FlushEvents() error

func (NOOPEventsDB) LoadEvents added in v0.19.0

func (NOOPEventsDB) LoadEvents(height uint64) e.Events

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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