Files
old-backend/config/models.go

43 lines
849 B
Go
Raw Normal View History

2023-09-05 11:37:03 +02:00
package config
// Config stores application configuration
type Config struct {
2023-09-18 12:27:40 +02:00
Service Service
AdminService Service
Database Database
2023-09-21 11:59:08 +02:00
Blockchain Blockchain
2023-11-10 17:32:17 +01:00
AWS AWS
2023-09-05 11:37:03 +02:00
}
// Service contains configuration for service
type Service struct {
2023-11-10 17:32:17 +01:00
Port string
Environment string
WebPageURL string
MapboxAccessToken string
JwtSecretKey string
JwtSecretKeyExpiryHours string
2023-09-05 11:37:03 +02:00
}
2023-09-21 11:59:08 +02:00
// Blockchain contains configuration for blockchain
type Blockchain struct {
NetworkEndpoint string
ContractAddress string
WalletAddress string
WalletPrivateKey string
}
2023-09-05 11:37:03 +02:00
// Database configuration
type Database struct {
2023-09-18 12:27:40 +02:00
UserName string
Password string
DatabaseName string
HostName string
Port string
2023-09-05 11:37:03 +02:00
}
2023-10-30 19:21:43 +01:00
type AWS struct {
AccessKey string
SecretKey string
}