util

package
v0.0.0-...-aa74118 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMyIP

func GetMyIP() (net.IP, error)

func ShrinkIP

func ShrinkIP(netIP net.IP) net.IP

Types

type DefaultRouteInfo

type DefaultRouteInfo struct {
	Address   net.IP
	Interface string
	Mask      net.IPMask
}

func GetDefaultRoute

func GetDefaultRoute() (*DefaultRouteInfo, error)

type ResolverConfiguration

type ResolverConfiguration struct {
	Domain        string
	Nameservers   []net.IP
	SearchDomains []string
}

func GetResolverConfiguration

func GetResolverConfiguration() (*ResolverConfiguration, error)

Jump to

Keyboard shortcuts

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