Files
old-backend/config/models.go
2023-10-12 05:23:34 +02:00

36 lines
712 B
Go

package config
// Config stores application configuration
type Config struct {
Service Service
AdminService Service
Database Database
Blockchain Blockchain
}
// Service contains configuration for service
type Service struct {
Port string
Environment string
WebPageURL string
BlockchainSecret string
MapboxAccessToken string
}
// Blockchain contains configuration for blockchain
type Blockchain struct {
NetworkEndpoint string
ContractAddress string
WalletAddress string
WalletPrivateKey string
}
// Database configuration
type Database struct {
UserName string
Password string
DatabaseName string
HostName string
Port string
}