Documentation ¶
Overview ¶
Package app provides the top app-level abstraction and entrypoint for a charon DVC instance. The sub-packages also provide app-level functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { P2P p2p.Config Log log.Config Feature featureset.Config LockFile string NoVerify bool PrivKeyFile string MonitoringAddr string ValidatorAPIAddr string BeaconNodeAddrs []string JaegerAddr string JaegerService string SimnetBMock bool SimnetVMock bool SimnetValidatorKeysDir string BuilderAPI bool TestConfig TestConfig }
type TestConfig ¶
type TestConfig struct { p2p.TestPingConfig // Lock provides the lock explicitly, skips loading from disk. Lock *cluster.Lock // P2PKey provides the p2p privkey explicitly, skips loading from keystore on disk. P2PKey *ecdsa.PrivateKey // ParSigExFunc provides an in-memory partial signature exchange. ParSigExFunc func() core.ParSigEx // LcastTransportFunc provides an in-memory leader cast transport. LcastTransportFunc func() leadercast.Transport // SimnetKeys provides private key shares for the simnet validatormock signer. SimnetKeys []*bls_sig.SecretKey // SimnetBMockOpts defines additional simnet beacon mock options. SimnetBMockOpts []beaconmock.Option // BroadcastCallback is called when a duty is completed and sent to the broadcast component. BroadcastCallback func(context.Context, core.Duty, core.PubKey, core.SignedData) error // BuilderRegistration provides a channel for tests to trigger builder registration by the validator mock, BuilderRegistration <-chan *eth2api.VersionedValidatorRegistration }
TestConfig defines additional test-only config.
Directories ¶
Path | Synopsis |
---|---|
Package errors provides errors with structured fields and stack traces.
|
Package errors provides errors with structured fields and stack traces. |
Package eth2wrap provides a wrapper for eth2http.Service adding prometheus metrics and error wrapping.
|
Package eth2wrap provides a wrapper for eth2http.Service adding prometheus metrics and error wrapping. |
genwrap
Command genwrap provides a code generator for eth2client provider methods implemented by eth2multi.Service.
|
Command genwrap provides a code generator for eth2client provider methods implemented by eth2multi.Service. |
Package expbackoff implements exponential backoff.
|
Package expbackoff implements exponential backoff. |
Package featureset defines a set of global features and their rollout status.
|
Package featureset defines a set of global features and their rollout status. |
Package forkjoin provides an API for "doing work concurrently (fork) and then waiting for the results (join)".
|
Package forkjoin provides an API for "doing work concurrently (fork) and then waiting for the results (join)". |
Package lifecycle provides a life cycle manager abstracting the starting and stopping of processes by registered start or stop hooks.
|
Package lifecycle provides a life cycle manager abstracting the starting and stopping of processes by registered start or stop hooks. |
Package log provides global logging functions to be used throughout the charon app.
|
Package log provides global logging functions to be used throughout the charon app. |
Package promauto is a drop-in replacement of github.com/prometheus/client_golang/prometheus/promauto and adds support for wrapping all metrics with runtime labels.
|
Package promauto is a drop-in replacement of github.com/prometheus/client_golang/prometheus/promauto and adds support for wrapping all metrics with runtime labels. |
Package retry provides a generic async function executor with retries for robustness against network failures.
|
Package retry provides a generic async function executor with retries for robustness against network failures. |
Package tracer provides a global OpenTelemetry tracer.
|
Package tracer provides a global OpenTelemetry tracer. |
Package z provides an API for structured logging fields by wrapping zap.Field.
|
Package z provides an API for structured logging fields by wrapping zap.Field. |
Click to show internal directories.
Click to hide internal directories.