tools

package
v0.0.0-...-d1ba03b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdCatChunks

func CmdCatChunks() *cobra.Command

Constructs a Cobra command for retrieving NDN data under a specified name prefix and writing the content to stdout.

func CmdPingClient

func CmdPingClient() *cobra.Command

Constructs a CLI command for sending NDN Interest packets to a specified prefix with configurable interval, timeout, count, and starting sequence number to measure network latency.

func CmdPingServer

func CmdPingServer() *cobra.Command

Constructs a CLI command to start an NDN ping server under a specified name prefix, with an optional flag to use the client's origin for prefix registration.

func CmdPutChunks

func CmdPutChunks() *cobra.Command

Constructs a CLI command for publishing data under a specified name prefix in Named-Data Networking, reading input from standard input with an optional flag to register the prefix via client origin.

Types

type CatChunks

type CatChunks struct{}

func (*CatChunks) String

func (cc *CatChunks) String() string

Returns the string representation "cat" for the CatChunks object.

type PingClient

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

func (*PingClient) String

func (pc *PingClient) String() string

Returns the string representation of the PingClient as "ping", used for identification in logging or debugging contexts.

type PingServer

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

func (*PingServer) String

func (ps *PingServer) String() string

Returns a string representation of the PingServer as "ping-server".

type PutChunks

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

func (*PutChunks) String

func (pc *PutChunks) String() string

Returns the string representation of PutChunks, which is "put".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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