app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

func Run

func Run(ctx context.Context, conf Config) error

Run is the entrypoint for running a charon DVC instance. All processes and their dependencies are constructed and then started. Graceful shutdown is triggered on first process error or when the shutdown context is cancelled.

Types

type Config

type Config struct {
	P2P              p2p.Config
	ManifestFile     string
	DataDir          string
	MonitoringAddr   string
	ValidatorAPIAddr string
	BeaconNodeAddr   string
	JaegerAddr       string

	TestConfig TestConfig
}

type TestConfig

type TestConfig struct {
	// Manifest provides the manifest explicitly, skips loading ManifestFile from disk.
	Manifest cluster.Manifest
	// P2PKey provides the p2p privkey explicitly, skips loading from keystore on disk.
	P2PKey *ecdsa.PrivateKey
	// PingCallback is called when a ping was completed to a peer.
	PingCallback func(peer.ID)
	// ExcludeManifestBootnodes excludes the manifest ENRs to be used as discv5 bootnodes.
	ExcludeManifestBootnodes bool
}

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 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 tracer provides a global OpenTelemetry tracer.
Package tracer provides a global OpenTelemetry tracer.
z
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL