Documentation
¶
Overview ¶
Package config provides configuration types for execution-processor. This package is designed to be imported without pulling in go-ethereum dependencies, making it suitable for embedded mode integrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// MetricsAddr is the address to listen on for metrics.
MetricsAddr string `yaml:"metricsAddr" default:":9090"`
// HealthCheckAddr is the address to listen on for healthcheck.
HealthCheckAddr *string `yaml:"healthCheckAddr"`
// PProfAddr is the address to listen on for pprof.
PProfAddr *string `yaml:"pprofAddr"`
// APIAddr is the address to listen on for the API server.
APIAddr *string `yaml:"apiAddr"`
// LoggingLevel is the logging level to use.
LoggingLevel string `yaml:"logging" default:"info"`
// Ethereum is the ethereum network configuration.
Ethereum EthereumConfig `yaml:"ethereum"`
// Redis is the redis configuration.
Redis *redis.Config `yaml:"redis"`
// StateManager is the state manager configuration.
StateManager state.Config `yaml:"stateManager"`
// Processors is the processor configuration.
Processors processor.Config `yaml:"processors"`
// ShutdownTimeout is the timeout for shutting down the server.
ShutdownTimeout time.Duration `yaml:"shutdownTimeout" default:"10s"`
}
Config is the main configuration for execution-processor.
type EthereumConfig ¶
type EthereumConfig struct {
// Execution configuration
Execution []*execution.Config `yaml:"execution"`
// Override network name for custom networks (bypasses networkMap)
OverrideNetworkName *string `yaml:"overrideNetworkName"`
}
EthereumConfig is the ethereum network configuration. This is a copy of ethereum.Config to avoid importing pkg/ethereum which would pull in go-ethereum dependencies.
func (*EthereumConfig) Validate ¶
func (c *EthereumConfig) Validate() error
Validate validates the ethereum configuration.
Click to show internal directories.
Click to hide internal directories.