network

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package network contains network related utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExternalAddress

func GetExternalAddress() (string, error)

GetExternalAddress will return the detected external IP address based on the env var, then network interfaces (it will look for the first 172.17.0.0/16 address), and finally a fallback on localhost TODO: Maybe check for docker subnet first somehow, people can change it from 172.17.0.0/16 to something else after all..

Types

This section is empty.

Jump to

Keyboard shortcuts

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