utils

package
v0.17.43 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInterfaceAddrs

func AllInterfaceAddrs() ([]net.Addr, error)

Return all IP addresses that are currently in use on the local host.

This function differs from net.InterfaceAddrs() in that peer addresses for point-to-point interfaces are returned by this function, in addition to local interface addresses.

func IncIP added in v0.16.45

func IncIP(ip net.IP)

func NextIP

func NextIP(lower, upper net.IP) (net.IP, error)

return the next available IP address in the range of provided IPs

Types

This section is empty.

Jump to

Keyboard shortcuts

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