Added environment variables
This commit is contained in:
26
config/models.go
Normal file
26
config/models.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package config
|
||||
|
||||
// Config stores application configuration
|
||||
type Config struct {
|
||||
Service Service
|
||||
AdminService Service
|
||||
Database Database
|
||||
}
|
||||
|
||||
|
||||
// Service contains configuration for service
|
||||
type Service struct {
|
||||
Port string
|
||||
Environment string
|
||||
WebPageURL string
|
||||
}
|
||||
|
||||
// Database configuration
|
||||
type Database struct {
|
||||
UserName string
|
||||
Password string
|
||||
DatabaseName string
|
||||
HostName string
|
||||
Port string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user