types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch interface {
	// AddBlockRequest adds a new block request (block fetch) to the batch
	AddBlockRequest(uint64) error

	// AddBlockResultsRequest adds a new block results request (block results fetch) to the batch
	AddBlockResultsRequest(uint64) error

	// Execute sends the batch off for processing by the node
	Execute(context.Context) ([]any, error)

	// Count returns the number of requests in the batch
	Count() int
}

Batch defines the interface for the client batch

Jump to

Keyboard shortcuts

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