Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// LoggingLevel is the logging level to use.
LoggingLevel string `yaml:"logging" default:"info"`
// PProfAddr is the address to listen on for pprof.
PProfAddr *string `yaml:"pprofAddr"`
// MetricsAddr is the address to server prometheus metrics on.
MetricsAddr string `yaml:"metricsAddr" default:":9093"`
// Name is the name of the service.
Name string `yaml:"name" default:"xatu-sage"`
// Outputs configuration
Outputs []output.Config `yaml:"outputs"`
// ArmiarmaURL configuration
ArmiarmaURL string `yaml:"armiarmaUrl"`
// NTP Server to use for clock drift correction
NTPServer string `yaml:"ntpServer" default:"time.google.com"`
// Ethereum configuration
Ethereum ethereum.Config `yaml:"ethereum"`
// Workers is the number of workers to use for processing events.
// Warning: Running more than 1 worker may result in more than $DUPLICATE_ATTESTATION_THRESHOLD
// duplicate events being sent to outputs.
Workers int `yaml:"workers" default:"1"`
// DuplicateAttestationThreshold is the number of duplicate attestations to allow before
// ignoring the event.
DuplicateAttestationThreshold int `yaml:"duplicateAttestationThreshold" default:"3"`
}
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func (*Metrics) AddDecoratedEvent ¶
Click to show internal directories.
Click to hide internal directories.