netutil

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package netutil contains shared network address discovery helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CandidateHTTPURLs

func CandidateHTTPURLs(opts URLCandidatesOptions) []string

CandidateHTTPURLs returns human-facing HTTP URLs in preference order.

Types

type URLCandidatesOptions

type URLCandidatesOptions struct {
	Addr               string
	BaseURL            string
	Path               string
	IncludePublic      bool
	IncludeUnspecified bool
}

URLCandidatesOptions configures CandidateHTTPURLs.

Jump to

Keyboard shortcuts

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