add personal information service

This commit is contained in:
andrusyakka
2023-07-24 16:00:56 +03:00
parent fdc25b46fb
commit f01ac2e42a
3 changed files with 61 additions and 6 deletions

View File

@@ -5,9 +5,10 @@ import (
)
type MSHostsConfig struct {
UsersHost string
StoreHost string
EventsHost string
UsersHost string
StoreHost string
EventsHost string
PersonsHost string
}
type ServerConfig struct {
@@ -23,9 +24,10 @@ 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"),
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"),
},
Server: ServerConfig{
Port: getEnv("PORT", "8080"),