flags

package
v0.0.0-...-4fefc29 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarPrefix = "BLOB_ARCHIVER"

Variables

View Source
var (
	ArchiverPollIntervalFlag = &cli.StringFlag{
		Name:    "archiver-poll-interval",
		Usage:   "The interval at which the archiver polls for new blobs",
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "ARCHIVER_POLL_INTERVAL"),
		Value:   "6s",
	}
	ArchiverOriginBlock = &cli.StringFlag{
		Name:     "archiver-origin-block",
		Usage:    "The latest block hash that the archiver will walk back to",
		Required: true,
		EnvVars:  opservice.PrefixEnvVar(EnvVarPrefix, "ORIGIN_BLOCK"),
	}
	ArchiverListenAddrFlag = &cli.StringFlag{
		Name:    "archiver-listen-address",
		Usage:   "The address to list for new requests on",
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "LISTEN_ADDRESS"),
		Value:   "0.0.0.0:8000",
	}
)
View Source
var Flags []cli.Flag

Flags contains the list of configuration options available to the binary.

Functions

This section is empty.

Types

type ArchiverConfig

type ArchiverConfig struct {
	LogConfig     oplog.CLIConfig
	MetricsConfig opmetrics.CLIConfig
	BeaconConfig  common.BeaconConfig
	StorageConfig common.StorageConfig
	PollInterval  time.Duration
	OriginBlock   geth.Hash
	ListenAddr    string
}

func ReadConfig

func ReadConfig(cliCtx *cli.Context) ArchiverConfig

func (ArchiverConfig) Check

func (c ArchiverConfig) Check() error

Jump to

Keyboard shortcuts

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