eventsdb

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 7 Imported by: 0

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