env

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() string

Current returns current Fider environment

func GetEnvOrDefault

func GetEnvOrDefault(name string, defaultValue string) string

GetEnvOrDefault retrieves the value of the environment variable named by the key. It returns the value if available, otherwise returns defaultValue

func IsDevelopment

func IsDevelopment() bool

IsDevelopment returns true on Fider production environment

func IsProduction

func IsProduction() bool

IsProduction returns true on Fider production environment

func IsSingleHostMode

func IsSingleHostMode() bool

IsSingleHostMode returns true if host mode is set to single tenant

func IsTest

func IsTest() bool

IsTest returns true on Fider test environment

func Mode

func Mode() string

Mode returns HOST_MODE or its default value

func MultiTenantDomain

func MultiTenantDomain() string

MultiTenantDomain returns domain name of current instance for multi tenant hosts

func MustGet

func MustGet(name string) string

MustGet returns environment variable or panic

func Path

func Path(p ...string) string

Path returns root path of project + given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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