rollback

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputName  = "signal"
	OutputName = "state"
	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 - executes rollback on signal from input and notify all subscribers about new state after rollback operation.

                |----------------|
                |                |
-- struct{} ->  |     MODULE     |  -- storage.State ->
                |                |
                |----------------|

func NewModule

func NewModule(
	tx sdk.Transactable,
	state storage.IState,
	blocks storage.IBlock,
	node node.Api,
	cfg config.Indexer,
) Module

func (*Module) Close

func (module *Module) Close() error

Close -

func (*Module) Start

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

Start -

Jump to

Keyboard shortcuts

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