cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright © 2021 Miga Labs

Copyright © 2021 Miga Labs

Index

Constants

This section is empty.

Variables

View Source
var Eth2CrawlerCommand = &cli.Command{
	Name:   "eth2",
	Usage:  "crawl the eth2 network with the given configuration in the conf-file",
	Action: LaunchEth2Crawler,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:        "config-file",
			Usage:       "path to the <config.json> file used to configure the crawler",
			EnvVars:     []string{"ARMIARMA_CONFIG_FILE_NAME"},
			DefaultText: info.DefaultEth2ConfigFile,
			Value:       info.DefaultEth2ConfigFile,
		}},
}

CrawlCommand contains the crawl sub-command configuration.

View Source
var IpfsCrawlerCommand = &cli.Command{
	Name:   "ipfs",
	Usage:  "crawl the ipfs network with the given configuration in the conf-file",
	Action: LaunchIpfsCrawler,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:        "config-file",
			Usage:       "path to the <config.json> file used to configure the crawler",
			EnvVars:     []string{"ARMIARMA_CONFIG_FILE_NAME"},
			DefaultText: info.DefaultIpfsConfigFile,
			Value:       info.DefaultIpfsConfigFile,
		},
	},
}

CrawlCommand contains the crawl sub-command configuration.

Functions

func LaunchEth2Crawler added in v1.1.0

func LaunchEth2Crawler(c *cli.Context) error

CrawlAction is the function that is called when running `eth2`.

func LaunchIpfsCrawler added in v1.1.0

func LaunchIpfsCrawler(c *cli.Context) error

CrawlAction is the function that is called when running `ipfs`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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