Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶
type Config ¶
type Config struct { Db DbConfig Service ServiceConfig Tracing TracingConfig Jwt JwtConfig Admin AdminConfig Dev DevConfig }
type DbConfig ¶
type DbConfig struct { Name string `env:"DB_NAME" env-default:"postgres"` User string `env:"DB_USER" env-default:"postgres"` Password string `env:"DB_PASSWORD" env-default:"postgres"` Host string `env:"DB_HOST" env-default:"localhost"` Port string `env:"DB_PORT" env-default:"5432"` SSLMode string `env:"DB_SSLMODE" env-default:"disable"` }
type DevConfig ¶
type DevConfig struct {
MockEnabled bool `env:"DEV_MOCK_ENABLED" env-default:"false"`
}
type ServiceConfig ¶
type ServiceConfig struct { API struct { Host string `env:"SERVICE_API_HOST" env-default:"localhost"` Port int `env:"SERVICE_API_PORT" env-default:"1111"` } Auth struct { Host string `env:"SERVICE_AUTH_HOST" env-default:"localhost"` Port int `env:"SERVICE_AUTH_PORT" env-default:"2222"` } Speaker struct { Host string `env:"SERVICE_SPEAKER_HOST" env-default:"localhost"` Port int `env:"SERVICE_SPEAKER_PORT" env-default:"3333"` } Event struct { Host string `env:"SERVICE_EVENT_HOST" env-default:"localhost"` Port int `env:"SERVICE_EVENT_PORT" env-default:"4444"` } Session struct { Host string `env:"SERVICE_SESSION_HOST" env-default:"localhost"` Port int `env:"SERVICE_SESSION_PORT" env-default:"5555"` } }
type TracingConfig ¶
Click to show internal directories.
Click to hide internal directories.