constants

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRODUCTION  = "production"
	DEVELOPMENT = "development"
	LOCAL       = "local"
)
View Source
const (
	FORMAT_DATE     = "2006-01-02"
	FORMAT_DATETIME = "2006-01-02 15:04:05"
	LOG_FOLDER      = "storage/logs"
	TIMEOUT         = 30 * time.Second
)
View Source
const (
	APP_NAME  = "APP_NAME"
	APP_ENV   = "APP_ENV"
	APP_DEBUG = "APP_DEBUG"
	APP_PORT  = "APP_PORT"
	APP_URL   = "APP_URL"

	DB_HOST = "DB_HOST"
	DB_PORT = "DB_PORT"
	DB_USER = "DB_USER"
	DB_PASS = "DB_PASS"
	DB_NAME = "DB_NAME"

	SENTRY_DSN = "SENTRY_DSN"

	NEWRELIC_ENABLED  = "NEWRELIC_ENABLED"
	NEWRELIC_APP_NAME = "NEWRELIC_APP_NAME"
	NEWRELIC_LICENSE  = "NEWRELIC_LICENSE"

	HEALTHCHECK_URL = "HEALTHCHECK_URL"

	ADMIN_USERNAME = "ADMIN_USERNAME"
	ADMIN_PASSWORD = "ADMIN_PASSWORD"

	AWS_ACCESS_KEY_ID     = "AWS_ACCESS_KEY_ID"
	AWS_SECRET_ACCESS_KEY = "AWS_SECRET_ACCESS_KEY" // #nosec G101
	AWS_DEFAULT_REGION    = "AWS_DEFAULT_REGION"
	AWS_BUCKET            = "AWS_BUCKET"

	MAILGUN_DOMAIN = "MAILGUN_DOMAIN"
	MAILGUN_SECRET = "MAILGUN_SECRET"

	REDIS_HOST     = "REDIS_HOST"
	REDIS_PORT     = "REDIS_PORT"
	REDIS_PASSWORD = "REDIS_PASSWORD"
	REDIS_DB       = "REDIS_DB"
)

Environment Variable Constant Put env name in here to prevent typo

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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