env

package
v0.0.0-...-acda5ee Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

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

func Etc(p ...string) string

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

func HasLegal

func HasLegal() bool

HasLegal returns true if current instance contains legal documents: privacy.md and terms.md

func IsBillingEnabled

func IsBillingEnabled() bool

IsBillingEnabled returns true if Paddle is configured

func IsDevelopment

func IsDevelopment() bool

IsDevelopment returns true on Templates production environment

func IsProduction

func IsProduction() bool

IsProduction returns true on Templates 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 Templates 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

func Reload()

Reload configuration from current Enviornment Variables

func Subdomain

func Subdomain(host string) string

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

func Version

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