func NewJourney(logger *logrus.Entry, generator generation.Generator,
	validator discovery.Validator, tlsValidator discovery.TLSValidator,
	dynamicResourceIDs bool) *AppJourney {
	return &AppJourney{
		generator:             generator,
		validator:             validator,
		daemonController:      executors.NewBufferedDaemonController(),
		journeyLock:           &sync.Mutex{},
		allCollected:          false,
		testCasesRunGenerated: false,
		context:               model.Context{},
		log:                   logger.WithField("module", "journey"),
		events:                events.NewEvents(),
		permissions:           make(map[string][]manifest.RequiredTokens),
		manifests:             make([]manifest.Scripts, 0),
		tlsValidator:          tlsValidator,
		dynamicResourceIDs:    dynamicResourceIDs,
	}
}
// NewJourney creates an instance for a user journey
NewJourney creates an instance for a user journey
// NewJourney creates an instance for a user journey
func NewJourney(logger *logrus.Entry, generator generation.Generator,
	validator discovery.Validator, tlsValidator discovery.TLSValidator,
	dynamicResourceIDs bool) *AppJourney {
	return &AppJourney{
		generator:             generator,
		validator:             validator,
		daemonController:      executors.NewBufferedDaemonController(),
		journeyLock:           &sync.Mutex{},
		allCollected:          false,
		testCasesRunGenerated: false,
		context:               model.Context{},
		log:                   logger.WithField("module", "journey"),
		events:                events.NewEvents(),
		permissions:           make(map[string][]manifest.RequiredTokens),
		manifests:             make([]manifest.Scripts, 0),
		tlsValidator:          tlsValidator,
		dynamicResourceIDs:    dynamicResourceIDs,
	}
}
func NewJourney ( logger * logrus . Entry , generator generation . Generator , validator discovery . Validator , tlsValidator discovery . TLSValidator , dynamicResourceIDs bool ) * AppJourney { return & AppJourney { generator : generator , validator : validator , daemonController : executors . NewBufferedDaemonController ( ) , journeyLock : & sync . Mutex { } , allCollected : false , testCasesRunGenerated : false , context : model . Context { } , log : logger . WithField ( " " , " " ) , events : events . NewEvents ( ) , permissions : make ( map [ string ] [ ] manifest . RequiredTokens ) , manifests : make ( [ ] manifest . Scripts , 0 ) , tlsValidator : tlsValidator , dynamicResourceIDs : dynamicResourceIDs , } }
NewJourney creates an instance for a user journey
NewJourney creates an instance for a user journey