blockevent

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MIGRATION_DIRECOTRY = "projection/blockevent/migrations"
)

TODO: should change it to projection folder name to `block_event`, then we can remove it

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEvent

type BlockEvent struct {
	*rdbprojectionbase.Base
	// contains filtered or unexported fields
}

func NewBlockEvent

func NewBlockEvent(
	logger applogger.Logger,
	rdbConn rdb.Conn,
	migrationHelper migrationhelper.MigrationHelper,
) *BlockEvent

func (*BlockEvent) GetEventsToListen

func (_ *BlockEvent) GetEventsToListen() []string

func (*BlockEvent) HandleEvents

func (projection *BlockEvent) HandleEvents(height int64, events []event_entity.Event) error

func (*BlockEvent) OnInit

func (projection *BlockEvent) OnInit() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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