Documentation ¶
Index ¶
- func Current() string
- func Etc(p ...string) string
- func GetEnvOrDefault(name string, defaultValue string) string
- func GetPublicIP() (string, error)
- func HasLegal() bool
- 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 GetPublicIP ¶ added in v0.13.0
GetPublicIP returns the public IP of current hosting server
func HasLegal ¶ added in v0.13.0
func HasLegal() bool
HasLegal returns true if current instance contains legal documents: privacy.md and terms.md
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.