cmd

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discovery5 = &cli.Command{
	Name:   "discv5",
	Usage:  "crawl Ethereum's public DHT thought the Discovery 5.1 protocol",
	Action: RunDiscv5,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "log-level",
			Usage:   "verbosity of the logs that will be displayed [debug,warn,info,error]",
			EnvVars: []string{"IPFS_CID_HOARDER_LOGLEVEL"},
			Value:   "info",
		},
		&cli.StringFlag{
			Name:     "db-endpoint",
			Usage:    "login endpoint to the database",
			EnvVars:  []string{"IPFS_CID_HOARDER_DB_ENDPOINT"},
			Value:    "postgres://test:password@localhost:5432/eth_light_crawler",
			Required: true,
		},
		&cli.IntFlag{
			Name:  "port",
			Usage: "port number that we want to use/advertise in the Ethereum network",
			Value: 9001,
		},
		&cli.BoolFlag{
			Name:  "reset-db",
			Usage: "reset the content of the db tables",
			Value: false,
		},
	},
}

Functions

func RunDiscv5

func RunDiscv5(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