bootstrapaddr

package
v0.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 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 bootstrapaddr validates and normalizes operator-supplied Raminga DHT bootstrap multiaddrs.

Bootstrap peers are ordinary Raminga Peer records with a bootstrap role. The address syntax is intentionally strict: exactly one non-empty multiaddr that already contains its /p2p/<peer-id>, with no surrounding whitespace. Public IPFS/libp2p helpers are rejected so a historical address can never become a release preset by accident.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPublicBootstrap

func IsPublicBootstrap(raw string) bool

IsPublicBootstrap reports whether raw names a public IPFS/libp2p helper. It is shared with config validation so the accepted set never drifts.

Types

type Address

type Address struct {
	// Multiaddr is the canonical multiaddr string, including /p2p/<peer-id>.
	Multiaddr string
	// PeerID is the canonical Peer ID string.
	PeerID string
}

Address is one canonical bootstrap address and its Peer ID.

func Parse

func Parse(raw string) (Address, error)

Parse validates raw and returns its canonical form. It rejects empty or whitespace-padded values, public IPFS/libp2p bootstrap services, invalid multiaddrs, and addresses without a final /p2p/<peer-id>.

Jump to

Keyboard shortcuts

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