blockevent

package
v1.7.42 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 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