Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LoggingLevel string `yaml:"logging" default:"info"`
MetricsAddr string `yaml:"metricsAddr" default:":9090"`
PProfAddr *string `yaml:"pprofAddr"`
ProbeAddr *string `yaml:"probeAddr"`
// The name of the mimicry
Name string `yaml:"name"`
// Ethereum configuration
Ethereum ethereum.Config `yaml:"ethereum"`
// Outputs configuration
Outputs []output.Config `yaml:"outputs"`
// Labels configures the mimicry with labels
Labels map[string]string `yaml:"labels"`
// NTP Server to use for clock drift correction
NTPServer string `yaml:"ntpServer" default:"time.google.com"`
Schedule Schedule `yaml:"schedule"`
Relays []relay.Config `yaml:"relays"`
FetchProposerPayloadDelivered bool `yaml:"fetchProposerPayloadDelivered" default:"true"`
}
func (*Config) ApplyOverrides ¶ added in v1.0.15
func (c *Config) ApplyOverrides(o *Override, log logrus.FieldLogger) error
ApplyOverrides applies any overrides to the config.
func (*Config) CreateSinks ¶
type DuplicateBidCache ¶
type DuplicateBidCache struct {
// contains filtered or unexported fields
}
DuplicateBidCache is a cache to store information about whether a relay has seen a block for a specific slot and block hash
func NewDuplicateBidCache ¶
func NewDuplicateBidCache(ttl time.Duration) *DuplicateBidCache
NewDuplicateBidCache creates a new DuplicateBidCache with a specified TTL
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func (*Metrics) AddDecoratedEvent ¶
type RelayMonitor ¶
type RelayMonitor struct {
Config *Config
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, log logrus.FieldLogger, config *Config, overrides *Override) (*RelayMonitor, error)
func (*RelayMonitor) ServeMetrics ¶
func (r *RelayMonitor) ServeMetrics(ctx context.Context) error
func (*RelayMonitor) ServePProf ¶
func (r *RelayMonitor) ServePProf(ctx context.Context) error
func (*RelayMonitor) ServeProbe ¶
func (r *RelayMonitor) ServeProbe(ctx context.Context) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.