cmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 41 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
	MaxResPerPeer int
	MaxConns      int
	RelayLogLevel string
}

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