Discover Packages
github.com/onflow/flow-go
engine
execution
rpc
package
Version:
v0.12.6
Opens a new window with list of versions in this module.
Published: Dec 9, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 14
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.
Documentation
Documentation
¶
type Config struct {
ListenAddr string
MaxMsgSize int
}
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 ,
events storage .Events ,
exeResults storage .ExecutionResults ,
txResults storage .TransactionResults ,
chainID flow .ChainID ,
scriptsEnabled bool ,
queriesEnabled bool ,
) *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.