package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
New creates backend instance.
No description provided by the author
NetworkAPI func The observer and access nodes need to be able to handle GetNetworkParameters and GetLatestProtocolStateSnapshot RPCs so this logic was split into the backendNetwork so that we can ignore the rest of the backend logic */.
NewNodeCommunicator creates a new instance of NodeCommunicator.
No description provided by the author
No description provided by the author

# Constants

DefaultConnectionPoolSize is the default size for the connection pool to collection and execution nodes.
DefaultLoggedScriptsCacheSize is the default size of the lookup cache used to dedupe logs of scripts sent to ENs limiting cache size to 16MB and does not affect script execution, only for keeping logs tidy.
DefaultMaxHeightRange is the default maximum size of range requests.
DefaultSnapshotHistoryLimit the amount of blocks to look back in state when recursively searching for a valid snapshot.
IndexQueryModeCompare executes scripts and gets accounts using both local storage and execution nodes and compares the results.
IndexQueryModeExecutionNodesOnly executes scripts and gets accounts using only execution nodes.
IndexQueryModeFailover executes scripts and gets accounts using local storage first, then falls back to execution nodes if data is not available for the height or if request failed due to a non-user error.
IndexQueryModeLocalOnly executes scripts and gets accounts using only local storage.

# Variables

ErrIncompatibleNodeVersion indicates that node version is incompatible with the block version.
ErrTransactionNotInBlock represents an error indicating that the transaction is not found in the block.

# Structs

Backend implements the Access API.
Config defines the configurable options for creating Backend.
InsufficientExecutionReceipts indicates that no execution receipt were found for a given block ID.
MainNodeSelector is a specific implementation of the node selector.
NodeCommunicator is responsible for calling available nodes in the backend.
NodeSelectorFactory is a factory for creating node selectors based on factory configuration and node type.
No description provided by the author
Retry implements a simple retry mechanism for transaction submission.
No description provided by the author
TransactionsLocalDataProvider provides functionality for retrieving transaction results and error messages from local storages.
TransactionSubscriptionMetadata holds data representing the status state for each transaction subscription.

# Interfaces

No description provided by the author
NodeSelector is an interface that represents the ability to select node identities that the access node is trying to reach.
TransactionErrorMessage declares the lookup transaction error methods by different input parameters.

# Type aliases

No description provided by the author