env

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BROKER_RABBITMQ_URI  = "CODEXGO_BROKER_RABBITMQ_URI"
	BROKER_RABBITMQ_NAME = "CODEXGO_BROKER_RABBITMQ_NAME"

	DATABASE_MONGODB_URI  = "CODEXGO_DATABASE_MONGODB_URI"
	DATABASE_MONGODB_NAME = "CODEXGO_DATABASE_MONGODB_NAME"

	DATABASE_SQLITE_DSN = "CODEXGO_DATABASE_SQLITE_DSN"

	SMTP_HOST     = "CODEXGO_SMTP_HOST"
	SMTP_PORT     = "CODEXGO_SMTP_PORT"
	SMTP_USERNAME = "CODEXGO_SMTP_USERNAME"
	SMTP_PASSWORD = "CODEXGO_SMTP_PASSWORD"

	JWT_SECRET_KEY = "CODEXGO_JWT_SECRET_KEY"

	SERVER_GIN_HOSTNAME            = "CODEXGO_SERVER_GIN_HOSTNAME"
	SERVER_GIN_PORT                = "CODEXGO_SERVER_GIN_PORT"
	SERVER_GIN_URL                 = "CODEXGO_SERVER_GIN_URL"
	SERVER_GIN_MODE                = "CODEXGO_SERVER_GIN_MODE"
	SERVER_GIN_ALLOWED_HOSTS       = "CODEXGO_SERVER_GIN_ALLOWED_HOSTS"
	SERVER_GIN_COOKIE_SECRET_KEY   = "CODEXGO_SERVER_GIN_COOKIE_SECRET_KEY"
	SERVER_GIN_COOKIE_SESSION_NAME = "CODEXGO_SERVER_GIN_COOKIE_SESSION_NAME"

	DEV_AIR_PROXY_PORT = "CODEXGO_DEV_AIR_PROXY_PORT"
)

Variables

View Source
var (
	DatabaseMongoDBURI, DatabaseMongoDBName string

	DatabaseSQLiteDSN string
)
View Source
var (
	BrokerRabbitMQURI, BrokerRabbitMQName string
)
View Source
var (
	JWTSecretKey string
)
View Source
var (
	SMTPHost, SMTPPort, SMTPUsername, SMTPPassword string
)
View Source
var (
	ServerGinHostname, ServerGinPort, ServerGinURL, ServerGinMode, ServerGinAllowedHosts, ServerGinCookieSecretKey, ServerGinCookieSessionName string
)

Functions

func Broker added in v4.7.0

func Broker()

func Database added in v4.7.0

func Database()

func HasBroker added in v4.8.0

func HasBroker() bool

func HasDatabase added in v4.9.0

func HasDatabase() bool

func HasSMTP added in v4.7.0

func HasSMTP() bool

func HasServerGinProxy

func HasServerGinProxy() (string, bool)

func Init added in v4.7.0

func Init() error

func JWT added in v4.7.0

func JWT()

func SMTP added in v4.7.0

func SMTP()

func Server added in v4.7.0

func Server()

func Verify added in v4.7.0

func Verify() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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