cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Overview

Package cmd implements Charon's command-line interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.1.1

func New() *cobra.Command

New returns a new root cobra command that handles our command line tool.

func RunBootnode added in v0.4.0

func RunBootnode(ctx context.Context, config BootnodeConfig) error

RunBootnode starts a p2p-udp discv5 bootnode.

Types

type BootnodeConfig added in v0.4.0

type BootnodeConfig struct {
	DataDir    string
	HTTPAddr   string
	P2PConfig  p2p.Config
	LogConfig  log.Config
	AutoP2PKey bool
	P2PRelay   bool
}

BootnodeConfig defines the config of the bootnode.

Jump to

Keyboard shortcuts

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