command

package
v0.0.0-...-403c8b4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, MIT Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const DAG_MAX = 3200000

Variables

View Source
var (
	ErrDaemonStart = errors.New("daemon did not start correctly")
	ErrDaemonStop  = errors.New("daemon did not stop correctly")
)
View Source
var AdminCmd = &cli.Command{
	Name:  "admin",
	Usage: "Perform admin activities with an indexer",
	Subcommands: []*cli.Command{
		allow,
		block,
		importProviders,
		reload,
		sync,
	},
}
View Source
var ConfigCmd = &cli.Command{
	Name:  "config",
	Usage: "Dynamically modifies and shows the current logging configuration",
	Flags: []cli.Flag{indexerHostFlag},
	Subcommands: []*cli.Command{
		{
			Name:  "set",
			Usage: "Sets a configuration parameter",
			Subcommands: []*cli.Command{
				{
					Name:    "log.level",
					Aliases: []string{"ll"},
					Usage:   "Sets log level for logging subsystems",
					Description: `Configures log level for logging subystems specified as pairs of arguments.
Subsystem may be specified as a regular expression. For example the 
following command will set the level for all subsystems to debug:

	storetheindex config set log-level '.*' debug`,
					ArgsUsage: "<sub-system> <level> [<sub-system> <level>]...",
					Action:    setLogLevels,
				},
			},
		},
		{
			Name:  "get",
			Usage: "Shows a configuration parameter",
			Subcommands: []*cli.Command{
				{
					Name:    "log.subsystems",
					Aliases: []string{"lss"},
					Usage:   "Lists the available logging subsystems",
					Action:  listLogSubSystems,
				},
			},
		},
	},
}
View Source
var DaemonCmd = &cli.Command{
	Name:   "daemon",
	Usage:  "Start an indexer daemon, accepting http requests",
	Flags:  daemonFlags,
	Action: daemonCommand,
}
View Source
var FindCmd = &cli.Command{
	Name:   "find",
	Usage:  "Find value by CID or multihash in indexer",
	Flags:  findFlags,
	Action: findCmd,
}
View Source
var ImportCmd = &cli.Command{
	Name:  "import",
	Usage: "Imports data directly into indexer, bypassing ingestion process",
	Subcommands: []*cli.Command{
		importCidList,
		importCar,
		importManifest,
	},
}
View Source
var InitCmd = &cli.Command{
	Name:   "init",
	Usage:  "Initialize or upgrade indexer node config file",
	Flags:  initFlags,
	Action: initCommand,
}
View Source
var ProvidersCmd = &cli.Command{
	Name:  "providers",
	Usage: "Commands to get provider information",
	Subcommands: []*cli.Command{
		get,
		list,
	},
}
View Source
var RegisterCmd = &cli.Command{
	Name:   "register",
	Usage:  "Register provider information with an indexer",
	Flags:  registerFlags,
	Action: registerCommand,
}
View Source
var SyntheticCmd = &cli.Command{
	Name:   "synthetic",
	Usage:  "Generate synthetic load to import in indexer",
	Flags:  syntheticFlags,
	Action: syntheticCmd,
}

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