inmemorybooker

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(opts ...options.Option[Booker]) module.Provider[*engine.Engine, booker.Booker]

Types

type Booker

type Booker struct {
	module.Module
	// contains filtered or unexported fields
}

func New

func New(apiProvider iotago.APIProvider, blockCache *blocks.Blocks, errorHandler func(error), opts ...options.Option[Booker]) *Booker

func (*Booker) Queue

func (b *Booker) Queue(block *blocks.Block) error

Queue checks if payload is solid and then sets up the block to react to its parents.

func (*Booker) Reset

func (b *Booker) Reset()

Reset resets the component to a clean state as if it was created at the last commitment.

func (*Booker) Shutdown

func (b *Booker) Shutdown()

Jump to

Keyboard shortcuts

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