loading

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPackage

type BlockPackage struct {
	Peer  netip.Addr
	Block *proto.Block
}

type IDsPackage

type IDsPackage struct {
	Peer netip.Addr
	IDs  []proto.BlockID
}

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(
	registry *peers.Registry, linkage *chains.Linkage, idsCh <-chan IDsPackage, blockCh <-chan BlockPackage,
) *Loader

func (*Loader) Fail

func (l *Loader) Fail()

func (*Loader) OK

func (l *Loader) OK()

func (*Loader) Run

func (l *Loader) Run(ctx context.Context)

func (*Loader) Shutdown

func (l *Loader) Shutdown()

type Reporter

type Reporter interface {
	OK()
	Fail()
}

Jump to

Keyboard shortcuts

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