env

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 141

Documentation

Index

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 Etc added in v0.13.0

func Etc(p ...string) string

Etc returns a path to a folder or file inside the /etc/ folder

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 IsTest

func IsTest() bool

IsTest returns true on Fider test environment

func MultiTenantDomain

func MultiTenantDomain() string

MultiTenantDomain returns domain name of current instance for multi tenant hosts

func Path

func Path(p ...string) string

Path returns root path of project + given path

func Reload added in v0.18.0

func Reload()

Reload configuration from current Enviornment Variables

func Subdomain added in v0.14.0

func Subdomain(host string) string

Subdomain returns the Fider subdomain (if available) from given host

func Version added in v0.19.0

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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