cmd

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdYaNFD = &cobra.Command{
	Use:     "yanfd CONFIG-FILE",
	Short:   "Yet another NDN Forwarding Daemon",
	GroupID: "run",
	Version: utils.NDNdVersion,
	Args:    cobra.ExactArgs(1),
	Run:     run,
}

Functions

This section is empty.

Types

type Profiler

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

func NewProfiler

func NewProfiler(config *core.Config) *Profiler

func (*Profiler) Start

func (p *Profiler) Start() (err error)

func (*Profiler) Stop

func (p *Profiler) Stop()

func (*Profiler) String

func (p *Profiler) String() string

type YaNFD

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

YaNFD is the wrapper class for the NDN Forwarding Daemon. Note: only one instance of this class should be created.

func NewYaNFD

func NewYaNFD(config *core.Config) *YaNFD

NewYaNFD creates a YaNFD. Don't call this function twice.

func (*YaNFD) Start

func (y *YaNFD) Start()

Start runs YaNFD. Note: this function may exit the program when there is error. This function is non-blocking.

func (*YaNFD) Stop

func (y *YaNFD) Stop()

Stop shuts down YaNFD.

func (*YaNFD) String

func (y *YaNFD) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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