netstest

package
v0.2.0-dev.14 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package netstest provides network-table fixtures shared by node engine tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressForms

func AddressForms(value string) ([][]byte, error)

AddressForms returns the text, native address bytes, and 16-byte mapped form used by privacy tests.

func LoopbackBytes

func LoopbackBytes(asn uint32) ([]byte, error)

LoopbackBytes returns an ASN table that maps all loopback v4 and v6 addresses to asn.

func LoopbackDB

func LoopbackDB(asn uint32) (*asndb.DB, error)

LoopbackDB parses LoopbackBytes for use by an engine fixture.

Types

type LogBuffer

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

LogBuffer is a synchronized writer for engine and agent logs emitted by fixture goroutines.

func (*LogBuffer) String

func (b *LogBuffer) String() string

func (*LogBuffer) Write

func (b *LogBuffer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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