* feat(backend): added new trigger topic for mobile video replay maker * feat(backend): mobile video maker with mix list support * feat(backend): fixed panic * feat(backend): removed commented code
25 lines
766 B
Go
25 lines
766 B
Go
package videostorage
|
|
|
|
import (
|
|
"openreplay/backend/internal/config/common"
|
|
"openreplay/backend/internal/config/configurator"
|
|
"openreplay/backend/internal/config/objectstorage"
|
|
)
|
|
|
|
type Config struct {
|
|
common.Config
|
|
objectstorage.ObjectsConfig
|
|
FSDir string `env:"FS_DIR,required"`
|
|
GroupVideoStorage string `env:"GROUP_VIDEO_STORAGE,required"`
|
|
GroupCanvasVideo string `env:"GROUP_CANVAS_VIDEO,required"`
|
|
TopicReplayTrigger string `env:"TOPIC_REPLAY_TRIGGER,required"`
|
|
TopicCanvasTrigger string `env:"TOPIC_CANVAS_TRIGGER,required"`
|
|
VideoReplayFPS int `env:"VIDEO_REPLAY_FPS,default=3"`
|
|
UseProfiler bool `env:"PROFILER_ENABLED,default=false"`
|
|
}
|
|
|
|
func New() *Config {
|
|
cfg := &Config{}
|
|
configurator.Process(cfg)
|
|
return cfg
|
|
}
|