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.
Click to show internal directories.
Click to hide internal directories.