net

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupHost

func LookupHost(h *cap.Host, host string) ([]string, error)

LookupHost looks up the addresses for a given hostname via DNS

Types

type LookupHostResponse

type LookupHostResponse struct {
	// List of IP addresses associated with the host
	Ips []string `json:"ips"`
}

We don't need to expose that to consumers of the library This is a glorified wrapper needed to unmarshal a list of string inside of TinyGo. As of release 0.29.0, unmarshal a simple list of string causes a runtime panic

Jump to

Keyboard shortcuts

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