add events

This commit is contained in:
andrusyakka
2023-07-17 14:30:22 +03:00
parent 9234b577bb
commit c8ce5a910e
5 changed files with 99 additions and 29 deletions

View File

@@ -5,8 +5,9 @@ import (
)
type MSHostsConfig struct {
UsersHost string
StoreHost string
UsersHost string
StoreHost string
EventsHost string
}
type ServerConfig struct {
@@ -22,8 +23,9 @@ 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"),
UsersHost: getEnv("ASTRA-USERS", "http://localhost:8082"),
StoreHost: getEnv("ASTRA-FILE-STORAGE", "http://localhost:8081"),
EventsHost: getEnv("ASTRA-EVENTS", "http://localhost:8083"),
},
Server: ServerConfig{
Port: getEnv("PORT", "8080"),