receiver

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlocksOutput     = "blocks"
	RollbackOutput   = "signal"
	RollbackInput    = "state"
	GenesisOutput    = "genesis"
	GenesisDoneInput = "genesis_done"
	StopOutput       = "stop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	modules.BaseModule
	// contains filtered or unexported fields
}

Module - runs through a chain with aim ti catch-up head and identifies either block is fits in sequence or signals of rollback.

	|----------------|
	|                | -- types.BlockData -> BlocksOutput
	|     MODULE     |
	|    Receiver    | -- struct{}        -> RollbackOutput
	|                | <- storage.State   -- RollbackInput
    |----------------|

func NewModule

func NewModule(cfg config.Indexer, api node.Api, ws *http.HTTP, state *storage.State) Module

func (*Module) Close

func (r *Module) Close() error

func (*Module) Level

func (r *Module) Level() (types.Level, []byte)

func (*Module) Start

func (r *Module) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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