mgmt

package
v0.0.0-...-c2e30b8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: NIST-PD-fallback Imports: 3 Imported by: 6

Documentation

Overview

Package mgmt defines interface of forwarder management features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	io.Closer

	// OpenFace creates a face connected to the current application.
	OpenFace() (Face, error)
}

Client provides access to forwarder management features for the application.

type Face

type Face interface {
	// ID returns face identifier.
	ID() string

	// Face returns an l3.Face.
	Face() l3.Face

	// Close requests the face to be closed.
	Close() error

	// Advertise advertises a prefix announcement.
	// The connected forwarder should start delivering Interests matching this prefix to this face.
	// Advertising the same name more than once is not an error but has no effect.
	Advertise(name ndn.Name) error

	// Withdraw removes a route.
	// The connected forwarder should stop delivering Interests matching this prefix to this face.
	// Withdrawing an unadvertised name is not an error but has no effect.
	Withdraw(name ndn.Name) error
}

Face represents a face.

Directories

Path Synopsis
Package gqlmgmt provides access to NDN-DPDK GraphQL API.
Package gqlmgmt provides access to NDN-DPDK GraphQL API.

Jump to

Keyboard shortcuts

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