cmd

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdDv = &cobra.Command{
	Use:     "ndn-dv CONFIG-FILE",
	Short:   "NDN Distance Vector Routing Daemon",
	GroupID: "run",
	Version: utils.NDNdVersion,
	Args:    cobra.ExactArgs(1),
	Run:     run,
}

Functions

This section is empty.

Types

type DvExecutor

type DvExecutor struct {
	// contains filtered or unexported fields
}

func NewDvExecutor

func NewDvExecutor(config *config.Config) (*DvExecutor, error)

(AI GENERATED DESCRIPTION): Initializes a new `DvExecutor` by validating the supplied configuration, starting a basic NDN engine, and creating the DV router.

func (*DvExecutor) Router

func (dve *DvExecutor) Router() *dv.Router

(AI GENERATED DESCRIPTION): Returns the `dv.Router` instance associated with this `DvExecutor`.

func (*DvExecutor) Start

func (dve *DvExecutor) Start()

(AI GENERATED DESCRIPTION): Starts the DV engine and then the router, blocking indefinitely until the router stops, and panics if either component fails to start, ensuring the engine is stopped when the function exits.

func (*DvExecutor) Stop

func (dve *DvExecutor) Stop()

(AI GENERATED DESCRIPTION): Stops the DvExecutor by shutting down its underlying router.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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