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-09-05 11:37:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Service contains configuration for service
|
|
|
|
|
type Service struct {
|
2023-09-18 12:27:40 +02:00
|
|
|
Port string
|
|
|
|
|
Environment string
|
|
|
|
|
WebPageURL string
|
|
|
|
|
BlockchainSecret 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
|
|
|
}
|