Documentation ¶
Index ¶
- Variables
- func Etc(p ...string) string
- func HasLegal() bool
- func IsBillingEnabled() bool
- func IsDevelopment() bool
- func IsProduction() bool
- func IsSingleHostMode() bool
- func IsTest() bool
- func MultiTenantDomain() string
- func Path(p ...string) string
- func Reload()
- func Subdomain(host string) string
- func Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Config config
Config is a strongly typed reference to all configuration parsed from Environment Variables
Functions ¶
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 IsBillingEnabled ¶ added in v0.18.0
func IsBillingEnabled() bool
IsBillingEnabled returns true if Paddle is configured
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
func Reload ¶ added in v0.18.0
func Reload()
Reload configuration from current Enviornment Variables
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.