* feat(backend): added application name to postgres connection Co-authored-by: Alexander Zavorotynskiy <zavorotynskiy@pm.me>
20 lines
437 B
Go
20 lines
437 B
Go
package integrations
|
|
|
|
import (
|
|
"openreplay/backend/internal/config/common"
|
|
"openreplay/backend/internal/config/configurator"
|
|
)
|
|
|
|
type Config struct {
|
|
common.Config
|
|
common.Postgres
|
|
TopicAnalytics string `env:"TOPIC_ANALYTICS,required"`
|
|
TokenSecret string `env:"TOKEN_SECRET,required"`
|
|
UseProfiler bool `env:"PROFILER_ENABLED,default=false"`
|
|
}
|
|
|
|
func New() *Config {
|
|
cfg := &Config{}
|
|
configurator.Process(cfg)
|
|
return cfg
|
|
}
|