Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.