Documentation ¶
Overview ¶
Package envdetect detects in which cloud an app is running based on environment variables. Source: https://www.josephspurrier.com/cloud-environment-variables
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevConsoleEnabled ¶
func DevConsoleEnabled() bool
DevConsoleEnabled returns true if the AMB_DEVCONSOLE_ENABLE environment variable is set.
func DevConsolePort ¶
func DevConsolePort() string
DevConsolePort returns the port used for the Dev Console that amb connects to.
func DevConsoleURL ¶
func DevConsoleURL() string
DevConsoleURL returns the URL used for the Dev Console that amb connects to.
func LoadDotEnv ¶
func LoadDotEnv() bool
LoadDotEnv returns true if the AMB_DOTENV environment variable is set.
func RunningLocalDev ¶
func RunningLocalDev() bool
RunningLocalDev returns true if the AMB_LOCAL environment variable is set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.