config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS = "SUCCESS"
	FAILED  = "FAILED"
)

Variables

View Source
var (
	SrvPort       = ":8080"
	SrvName       = "NotificationApp"
	ComponentName = "NotificationApp"
	Api           = ComponentName + "-api"
	Database      = ComponentName + "-db"
	Channel       = ComponentName + "-channel"
	Template      = ComponentName + "-template"
)
View Source
var (
	LogLevel = logger.GetLevel(os.Getenv("SERVICE_LOG_LEVEL"))

	EmailSMTPHost    = os.Getenv("SESHOST")
	EmailSMTPPort, _ = strconv.Atoi(os.Getenv("SESPORT"))
	EmailSMTPUser    = os.Getenv("SESUSER")
	EmailSMTPPass    = os.Getenv("SESPASSWORD")
	EmailSMTPFrom    = os.Getenv("SESFROM")
	EmailSMTPSender  = os.Getenv("SESSENDER")
	EmailSMTPTLS     = os.Getenv("SESTLS")

	SMSAccessKey = os.Getenv("SNSACCESSKEY")
	SMSSecretKey = os.Getenv("SNSSECRETKEY")
	SMSRegion    = os.Getenv("SNSREGION")

	MongoUsername   = os.Getenv("MONGODBUSER")
	MongoPassword   = os.Getenv("MONGODBPASSWORD")
	MongoDB         = os.Getenv("MONGODB")
	MongoHost       = os.Getenv("MONGODBHOST")
	MongoCollection = os.Getenv("MONGODBCOLLECTION")
)

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