targets

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSampleTargets = 10000

Variables

This section is empty.

Functions

func OnePerPrefix

func OnePerPrefix(prefixes []model.Prefix, includeIPv6 bool, seed string) ([]string, error)

OnePerPrefix returns exactly one unique address for every active prefix. More-specific prefixes are processed first so constrained prefixes reserve their addresses before broader, overlapping prefixes choose alternatives.

func Sample

func Sample(prefixes []model.Prefix, limit int, includeIPv6 bool, seed string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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