gateway

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 6 Imported by: 8

README

go-gateway

A simple library for discovering the IP address of the default gateway.

Build Status

Provides implementations for:

  • Linux
  • MacOS
  • Windows

Other platforms use an implementation that always returns an error.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverGatewayIPv4

func DiscoverGatewayIPv4() (ip net.IP, err error)

DiscoverGatewayIPv4 is the OS independent function to get the default ipv4 gateway

func DiscoverGatewayIPv6

func DiscoverGatewayIPv6() (ip net.IP, err error)

DiscoverGatewayIPv6 is the OS independent function to get the default ipv6 gateway

Types

This section is empty.

Jump to

Keyboard shortcuts

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