engine

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: 9 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBasicEngine

func NewBasicEngine(face ndn.Face) ndn.Engine

(AI GENERATED DESCRIPTION): Creates a new BasicEngine using the supplied Face and a default timer.

func NewDefaultFace added in v1.4.2

func NewDefaultFace() ndn.Face

(AI GENERATED DESCRIPTION): Creates a default NDN Face from the client configuration’s transport URI, returning a UnixFace for a “unix” scheme or a StreamFace for “tcp”, “tcp4”, or “tcp6” schemes, and exiting with an error for unsupported URIs.

func NewUnixFace

func NewUnixFace(addr string) ndn.Face

(AI GENERATED DESCRIPTION): Creates a new NDN stream face that communicates over a Unix domain socket at the specified address.

Types

type ClientConfig added in v1.4.2

type ClientConfig struct {
	TransportUri string
}

func GetClientConfig added in v1.4.2

func GetClientConfig() ClientConfig

(AI GENERATED DESCRIPTION): Retrieves the NDN client configuration, starting with a default transport URI and overriding it with values from `client.conf` files in prioritized directories and the `NDN_CLIENT_TRANSPORT` environment variable.

Directories

Path Synopsis
Package basic gives a default implementation of the Engine interface.
Package basic gives a default implementation of the Engine interface.

Jump to

Keyboard shortcuts

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