peerscache

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package peerscache persists DHT neighbor UDP dial strings for cold bootstrap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) ([]string, error)

Load reads path; missing file returns nil, nil.

func Save

func Save(path string, peers []string) error

Save writes peers (capped) as JSON.

Types

type File

type File struct {
	Peers []string `json:"peers"`
}

File is the on-disk JSON shape.

Jump to

Keyboard shortcuts

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