Discover Packages
github.com/onflow/flow-go
engine
execution
rpc
package
Version:
v0.26.16-access-conn-pool
Opens a new window with list of versions in this module.
Published: Jul 18, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 2 modules, 1 package
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Config
type Engine
New(log, config, e, blocks, headers, state, events, exeResults, txResults, chainID, ...)
(e) Done()
(e) Ready()
Source Files
Documentation
Documentation
¶
type Config struct {
ListenAddr string
MaxMsgSize int
RpcMetricsEnabled bool
}
Config defines the configurable options for the gRPC server.
Engine implements a gRPC server with a simplified version of the Observation API.
func New(
log zerolog .Logger ,
config Config ,
e *ingestion .Engine ,
blocks storage .Blocks ,
headers storage .Headers ,
state protocol .State ,
events storage .Events ,
exeResults storage .ExecutionResults ,
txResults storage .TransactionResults ,
chainID flow .ChainID ,
signerIndicesDecoder hotstuff .BlockSignerDecoder ,
) *Engine
New returns a new RPC engine.
func (e *Engine ) Done() <-chan struct{}
Done returns a done channel that is closed once the engine has fully stopped.
It sends a signal to stop the gRPC server, then closes the channel.
func (e *Engine ) Ready() <-chan struct{}
Ready returns a ready channel that is closed once the engine has fully
started. The RPC engine is ready when the gRPC server has successfully
started.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.