own_url

package
v0.0.0-...-dfed899 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package own_url provides a way for a process to find a URL on which it can be reached.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoInterface is returned when no network interfaces with a real IP-address were found.
	ErrNoInterface = errors.New("no network interface found")
)

Functions

func AvailableURLs

func AvailableURLs(schema, listen string) ([]url.URL, error)

func ToStringers

func ToStringers(urls []url.URL) []fmt.Stringer

ToStringers converts an array of URLs to an array of `fmt.Stringer`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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