config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingL2RPC         = errors.New("must specify at least one L2 RPC")
	ErrMissingDependencySet = errors.New("must specify a dependency set source")
	ErrMissingDatadir       = errors.New("must specify datadir")
)

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

	L2RPCs  []string
	Datadir string
}

func NewConfig

func NewConfig(l2RPCs []string, 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.

func (*Config) Check

func (c *Config) Check() error

Jump to

Keyboard shortcuts

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