Documentation ¶
Index ¶
- func Current() string
- func GetEnvOrDefault(name string, defaultValue string) string
- func IsDefined(name string) bool
- func IsDevelopment() bool
- func IsProduction() bool
- func IsSingleHostMode() bool
- func IsTest() bool
- func Mode() string
- func MultiTenantDomain() string
- func MustGet(name string) string
- func Path(p ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrDefault ¶
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 MultiTenantDomain ¶
func MultiTenantDomain() string
MultiTenantDomain returns domain name of current instance for multi tenant hosts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.