process

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlocksGenerator

func NewBlocksGenerator(args ArgBlocksGenerator) (*blocksGenerator, error)

NewBlocksGenerator returns a new instance of blocksGenerator

Types

type ArgBlocksGenerator

type ArgBlocksGenerator struct {
	Simulator     SimulatorHandler
	BlockTimeInMs uint64
}

ArgBlocksGenerator defines the dto used to create a new instance of blocksGenerator

type BlocksGenerator

type BlocksGenerator interface {
	Close()
}

BlocksGenerator defines a component able to generate blocks

type SimulatorHandler

type SimulatorHandler interface {
	GenerateBlocks(numOfBlocks int) error
	IsInterfaceNil() bool
}

SimulatorHandler defines what a simulator handler should be able to do

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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