flags

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarPrefix = "OP_INTEROP_MON"

Variables

View Source
var (
	// Required Flags
	L2RpcsFlag = &cli.StringSliceFlag{
		Name:     "l2-rpcs",
		Usage:    "The RPC URLs for the L2 chains to monitor",
		EnvVars:  prefixEnvVars("L2_RPCS"),
		Required: true,
	}

	// Optional Flags
	SupervisorEndpointsFlag = &cli.StringSliceFlag{
		Name:     "supervisor-endpoints",
		Usage:    "The RPC endpoints for the supervisors to call admin_setFailsafeEnabled",
		EnvVars:  prefixEnvVars("SUPERVISOR_ENDPOINTS"),
		Required: false,
	}

	TriggerFailsafeFlag = &cli.BoolFlag{
		Name:     "trigger-failsafe",
		Usage:    "Enable automatic failsafe triggering when invalid messages are detected",
		EnvVars:  prefixEnvVars("TRIGGER_FAILSAFE"),
		Required: false,
		Value:    true,
	}
)
View Source
var Flags []cli.Flag

Functions

func CheckRequired

func CheckRequired(ctx *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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