Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version string
LogConfig oplog.CLIConfig
MetricsConfig opmetrics.CLIConfig
PprofConfig oppprof.CLIConfig
RPC oprpc.CLIConfig
DependencySetSource depset.DependencySetSource
// MockRun runs the service with a mock backend
MockRun bool
// SynchronousProcessors disables background-workers,
// requiring manual triggers for the backend to process anything.
SynchronousProcessors bool
L1RPC string
// SyncSources lists the consensus nodes that help sync the supervisor
SyncSources syncnode.SyncNodeCollection
Datadir string
DatadirSyncEndpoint string
// RPCVerificationWarnings enables asynchronous RPC verification of DB checkAccess call in the CheckAccessList endpoint, indicating warnings as a metric
RPCVerificationWarnings bool
}
func NewConfig ¶
func NewConfig(l1RPC string, syncSrcs syncnode.SyncNodeCollection, depSet depset.DependencySetSource, datadir string) *Config
NewConfig creates a new config using default values whenever possible. Required options with no suitable default are passed as parameters.
Click to show internal directories.
Click to hide internal directories.