envdetect

package
v0.0.0-...-545971b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 2 Imported by: 4

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.

Jump to

Keyboard shortcuts

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