system

package
v0.2.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtxFetcher

type AtxFetcher interface {
	GetAtxs(context.Context, []types.ATXID) error
	FetchAtx(context.Context, types.ATXID) error
}

AtxFetcher defines an interface for fetching ATXs from remote peers.

type BlockFetcher

type BlockFetcher interface {
	GetBlocks(context.Context, []types.BlockID) error
	FetchBlock(context.Context, types.BlockID) error
}

BlockFetcher defines an interface for fetching blocks from remote peers.

type Fetcher

type Fetcher interface {
	AtxFetcher
	BlockFetcher
	PoetProofFetcher
	TxFetcher
}

Fetcher is a general interface that defines a component capable of fetching data from remote peers.

type PoetProofFetcher

type PoetProofFetcher interface {
	GetPoetProof(context.Context, types.Hash32) error
}

PoetProofFetcher defines an interface for fetching PoET proofs from remote peers.

type TxFetcher

type TxFetcher interface {
	GetTxs(context.Context, []types.TransactionID) error
}

TxFetcher defines an interface for fetching transactions from remote peers.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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