genesis

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputName  = "block"
	OutputName = "finished"
	StopOutput = "stop"
)

constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module - saves received from input genesis block to storage and notify if it was success.

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

func NewModule

func NewModule(pg postgres.Storage, cfg config.Indexer) Module

NewModule -

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