add medical card service

This commit is contained in:
kandrusyak
2023-07-24 23:59:44 +03:00
parent f01ac2e42a
commit 4ea02e5d08
4 changed files with 101 additions and 8 deletions

View File

@@ -5,10 +5,11 @@ import (
)
type MSHostsConfig struct {
UsersHost string
StoreHost string
EventsHost string
PersonsHost string
UsersHost string
StoreHost string
EventsHost string
PersonsHost string
MedicalCardHost string
}
type ServerConfig struct {
@@ -24,10 +25,11 @@ type Config struct {
func New() *Config {
return &Config{
MSHosts: MSHostsConfig{
UsersHost: getEnv("ASTRA-USERS", "http://localhost:8082"),
StoreHost: getEnv("ASTRA-FILE-STORAGE", "http://localhost:8081"),
EventsHost: getEnv("ASTRA-EVENTS", "http://localhost:8083"),
PersonsHost: getEnv("ASTRA-PESONAL-INFORMATION", "http://localhost:8083"),
UsersHost: getEnv("ASTRA-USERS", "http://localhost:8082"),
StoreHost: getEnv("ASTRA-FILE-STORAGE", "http://localhost:8081"),
EventsHost: getEnv("ASTRA-EVENTS", "http://localhost:8083"),
PersonsHost: getEnv("ASTRA-PESONAL-INFORMATION", "http://localhost:8083"),
MedicalCardHost: getEnv("MEDICAL-INFORMATION", "http://localhost:8083"),
},
Server: ServerConfig{
Port: getEnv("PORT", "8080"),