Help us shape the future of Go! Take the 2026 Go Developer Survey

eventhandler

package
v1.7.39 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 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