config

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingL2RPC   = errors.New("must specify at least one L2 RPC")
	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

	// MockRun runs the service with a mock backend
	MockRun bool

	L2RPCs  []string
	Datadir string
}

func NewConfig

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