flags

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

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LevelDbPathFlag = &cli.StringFlag{
		Name:    "leveldb-path",
		Usage:   "the path of leveldb",
		EnvVars: prefixEnvVars("LEVEL_DB_PATH"),
		Value:   "./leveldb",
	}

	RpcHostFlag = &cli.StringFlag{
		Name:     "rpc-host",
		Usage:    "The host of the rpc server",
		EnvVars:  prefixEnvVars("RPC_HOST"),
		Value:    "localhost",
		Required: true,
	}

	RpcPortFlag = &cli.IntFlag{
		Name:     "rpc-port",
		Usage:    "The port of the rpc server",
		EnvVars:  prefixEnvVars("RPC_PORT"),
		Value:    8989,
		Required: true,
	}
)
View Source
var Flags []cli.Flag

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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