network

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package network provides network utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverDefaultGatewayDevice

func DiscoverDefaultGatewayDevice() (string, error)

DiscoverDefaultGatewayDevice discovers the interface name of the default gateway device.

func GetDefaultHostAddress

func GetDefaultHostAddress() string

GetDefaultHostAddress returns the default host IPv4 address.

func GetInterfaceIPV4Address

func GetInterfaceIPV4Address(ifName string) string

GetInterfaceIPV4Address returns the IPv4 address of the given interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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