urlhelper

package
v1.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromURLWithPort

func FromURLWithPort(u *url.URL) (multiaddr.Multiaddr, error)

func GetExternalHTTPAddr

func GetExternalHTTPAddr(c *config.HTTPConfig) (multiaddr.Multiaddr, error)

GetExternalHTTPAddr returns the multiaddr for HTTP announcements.

func GetExternalLibp2pAddr

func GetExternalLibp2pAddr(c *config.HTTPConfig) (multiaddr.Multiaddr, error)

GetExternalLibp2pAddr returns the multiaddr for libp2p WebSocket announcements.

func GetExternalURL

func GetExternalURL(c *config.HTTPConfig) (*url.URL, error)

GetExternalURL returns the external URL for IPNI announcements based on HTTPConfig. If the DEV_CURIO_EXTERNAL_URL environment variable is set, it is used as the external URL. Otherwise, constructs URL from DomainName using default port based on build type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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