monitor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntitiesToDtos

func EntitiesToDtos(height uint64, froms []*challengetypes.EventStartChallenge) []*model.Event

func EntityToDto

func EntityToDto(height uint64, from *challengetypes.EventStartChallenge) *model.Event

Types

type DataHandler added in v0.0.2

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

func NewDataHandler added in v0.0.2

func NewDataHandler(daoManager *dao.DaoManager) *DataHandler

func (*DataHandler) GetLatestBlock added in v0.0.2

func (h *DataHandler) GetLatestBlock() (*model.Block, error)

func (*DataHandler) SaveBlockAndEvents added in v0.0.2

func (h *DataHandler) SaveBlockAndEvents(block *model.Block, events []*model.Event) error

type DataProvider added in v0.0.2

type DataProvider interface {
	SaveBlockAndEvents(block *model.Block, events []*model.Event) error
	GetLatestBlock() (*model.Block, error)
}

type Monitor

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

func NewMonitor

func NewMonitor(executor *executor.Executor, dataProvider DataProvider, metricService *metrics.MetricService) *Monitor

func (*Monitor) ListenEventLoop

func (m *Monitor) ListenEventLoop()

Jump to

Keyboard shortcuts

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