* feat(backend): added new topic for canvasToVideo communication, moved some logic * feat(backend): enabled canvas recording * feat(backend): fixed canvas service main logic * feat(backend): fixed sessionEnd detector * feat(backend): send canvas mix lists instead of just a sessID * feat(backend): enabled canvas recording * feat(backend): removed old logs from video-storage * feat(backend): default low setting for canvas recording
30 lines
1,016 B
Go
30 lines
1,016 B
Go
package ender
|
|
|
|
import (
|
|
"openreplay/backend/internal/config/common"
|
|
"openreplay/backend/internal/config/configurator"
|
|
"openreplay/backend/internal/config/redis"
|
|
"time"
|
|
)
|
|
|
|
type Config struct {
|
|
common.Config
|
|
common.Postgres
|
|
redis.Redis
|
|
ProjectExpiration time.Duration `env:"PROJECT_EXPIRATION,default=10m"`
|
|
GroupEnder string `env:"GROUP_ENDER,required"`
|
|
LoggerTimeout int `env:"LOG_QUEUE_STATS_INTERVAL_SEC,required"`
|
|
TopicRawWeb string `env:"TOPIC_RAW_WEB,required"`
|
|
TopicRawIOS string `env:"TOPIC_RAW_IOS,required"`
|
|
TopicCanvasImages string `env:"TOPIC_CANVAS_IMAGES,required"`
|
|
ProducerTimeout int `env:"PRODUCER_TIMEOUT,default=2000"`
|
|
PartitionsNumber int `env:"PARTITIONS_NUMBER,required"`
|
|
UseEncryption bool `env:"USE_ENCRYPTION,default=false"`
|
|
UseProfiler bool `env:"PROFILER_ENABLED,default=false"`
|
|
}
|
|
|
|
func New() *Config {
|
|
cfg := &Config{}
|
|
configurator.Process(cfg)
|
|
return cfg
|
|
}
|