Documentation
¶
Index ¶
Constants ¶
View Source
const EnvVarPrefix = "OP_SUPERVISOR"
Variables ¶
View Source
var ( L1RPCFlag = &cli.StringFlag{ Name: "l1-rpc", Usage: "L1 RPC source.", EnvVars: prefixEnvVars("L1_RPC"), } L2ConsensusNodesFlag = &cli.StringSliceFlag{ Name: "l2-consensus.nodes", Usage: "L2 Consensus rollup node RPC addresses (with auth).", EnvVars: prefixEnvVars("L2_CONSENSUS_NODES"), } L2ConsensusJWTSecret = &cli.StringSliceFlag{ Name: "l2-consensus.jwt-secret", Usage: "Path to JWT secret key. Keys are 32 bytes, hex encoded in a file. " + "If multiple paths are specified, secrets are assumed to match l2-consensus-nodes order.", EnvVars: prefixEnvVars("L2_CONSENSUS_JWT_SECRET"), Value: cli.NewStringSlice(), TakesFile: true, } DataDirFlag = &cli.PathFlag{ Name: "datadir", Usage: "Directory to store data generated as part of responding to games", EnvVars: prefixEnvVars("DATADIR"), } DataDirSyncEndpointFlag = &cli.PathFlag{ Name: "datadir.sync-endpoint", Usage: "op-supervisor endpoint to sync databases from", EnvVars: prefixEnvVars("DATADIR_SYNC_ENDPOINT"), } DependencySetFlag = &cli.PathFlag{ Name: "dependency-set", Usage: "Dependency-set configuration, point at JSON file.", EnvVars: prefixEnvVars("DEPENDENCY_SET"), TakesFile: true, } MockRunFlag = &cli.BoolFlag{ Name: "mock-run", Usage: "Mock run, no actual backend used, just presenting the service", EnvVars: prefixEnvVars("MOCK_RUN"), Hidden: true, } )
View Source
var Flags []cli.Flag
Flags contains the list of configuration options available to the binary.
Functions ¶
func CheckRequired ¶
func CheckRequired(ctx *cli.Context) error
func ConfigFromCLI ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.