eventhandler

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	GetLastHandledEventHeight() (*int64, error)

	HandleEvents(blockHeight int64, events []event.Event) error

	Id() string
}

type ProjectionHandler

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

func NewProjectionHandler

func NewProjectionHandler(logger applogger.Logger, projection projection_entity.Projection) *ProjectionHandler

func (*ProjectionHandler) GetLastHandledEventHeight

func (handler *ProjectionHandler) GetLastHandledEventHeight() (*int64, error)

func (*ProjectionHandler) HandleEvents

func (handler *ProjectionHandler) HandleEvents(blockHeight int64, events []event.Event) error

func (*ProjectionHandler) Id added in v1.2.0

func (handler *ProjectionHandler) Id() string

type RDbEventStoreHandler

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

RDbEventStoreHandler is an event handler which persist the event to event store

func NewRDbEventStoreHandler

func NewRDbEventStoreHandler(
	logger applogger.Logger,
	rdbConn rdb.Conn,
	eventRegistry *event.Registry,
) *RDbEventStoreHandler

func (*RDbEventStoreHandler) GetLastHandledEventHeight

func (handler *RDbEventStoreHandler) GetLastHandledEventHeight() (*int64, error)

func (*RDbEventStoreHandler) HandleEvents

func (handler *RDbEventStoreHandler) HandleEvents(blockHeight int64, events []event.Event) error

func (*RDbEventStoreHandler) Id added in v1.2.0

func (handler *RDbEventStoreHandler) Id() string

Jump to

Keyboard shortcuts

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