Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenLoopback ¶
Listen announces on the loopback network address.
The network must be "tcp", "tcp4" or "tcp6".
func LookupLoopbackIP ¶
LookupLoopbackIP looks up loopback interfaces on the host using the local resolver. It returns a slice of that host's IPv6 and IPv4 addresses.
Types ¶
type ExternalPublicIPResolver ¶ added in v0.4.15
type ExternalPublicIPResolver struct {
// contains filtered or unexported fields
}
ExternalPublicIPResolver is a helper struct that allows to resolve caller's public IP address.
func NewExternalPublicIPResolver ¶ added in v0.4.15
func NewExternalPublicIPResolver(url string) *ExternalPublicIPResolver
NewExternalPublicIPResolver constructs a new external public IP resolver.
An optional "url" argument specifies the server URL, which can give the caller's public IP in a body as a string.
Click to show internal directories.
Click to hide internal directories.