config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort    = "3000"
	DefaultDataDir = "data"

	// DefaultHost fake url
	DefaultHost = "local.appspot.com"

	EnvLogLevel   = "LOGLEVEL"
	EnvDataDir    = "DATADIR"
	EnvPort       = "PORT"
	EnvStorageURL = "STORAGE_URL"

	// smtp
	EnvSmtpServer      = "RM_SMTP_SERVER"
	EnvSmtpUsername    = "RM_SMTP_USERNAME"
	EnvSmtpPassword    = "RM_SMTP_PASSWORD"
	EnvSmtpHelo        = "RM_SMTP_HELO"
	EnvSmtpInsecureTLS = "RM_SMTP_INSECURE_TLS"
	EnvSmtpFrom        = "RM_SMTP_FROM"

	// myScript hwr api keys
	EnvHwrApplicationKey = "RMAPI_HWR_APPLICATIONKEY"
	EnvHwrHmac           = "RMAPI_HWR_HMAC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port       string
	StorageURL string
	DataDir    string
	TrashDir   string
}

Config config

func FromEnv

func FromEnv() *Config

FromEnv config from environment values

Jump to

Keyboard shortcuts

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