Skip to content

Instantly share code, notes, and snippets.

@index0h
Created July 26, 2015 22:51
Show Gist options
  • Save index0h/519eb13ead43a0029164 to your computer and use it in GitHub Desktop.
Save index0h/519eb13ead43a0029164 to your computer and use it in GitHub Desktop.
DI
thrift_service:
constructor: NewThriftService
arguments:
- "%visit_handler%"
- "%event_handler%"
- "%flash_handler%"
- "%track_handler%"
- "%mark_handler%"
- "localhost:9090"
- binary
- 8192
visit_handler:
constructor: NewVisitHandler
arguments:
- "%visit_manager%"
- "%uuid%"
event_handler:
constructor: NewEventHandler
arguments:
- "%event_manager%"
- "%uuid%"
flash_handler:
constructor: NewFlashHandler
arguments:
- "%flash_manager%"
- "%uuid%"
track_handler:
constructor: NewTrackHandler
arguments:
- "%track_manager%"
- "%uuid%"
mark_handler:
constructor: NewMarkHandler
arguments:
- "%mark_manager%"
- "%uuid%"
visit_manager:
constructor: NewVisitManager
arguments:
- "%visit_repository%"
- "%uuid%"
- "%logger%"
event_manager:
constructor: NewEventManager
arguments:
- "%event_repository%"
- "%uuid%"
- "%logger%"
flash_manager:
constructor: NewFlashManager
arguments:
- "%flash_repository%"
- "%uuid%"
- "%logger%"
track_manager:
constructor: NewTrackManager
arguments:
- "%visit_repository%"
- "%event_repository%"
- "%flash_repository%"
- "%uuid%"
- "%logger%"
mark_manager:
constructor: NewTrackManager
arguments:
- "%mark_repository%"
- "%uuid%"
- "%logger%"
visit_repository:
constructor: NewMemoryVisitRepository
arguments:
- "%elastic_visit_repository%"
- 1000
elastic_visit_repository:
constructor: NewElasticVisitRepository
arguments:
- "%elastic_client%"
- "%uuid%"
event_repository:
constructor: NewMemoryEventRepository
arguments:
- "%elastic_event_repository%"
elastic_event_repository:
constructor: NewElasticVisitRepository
arguments:
- "%elastic_client%"
- "%uuid%"
flash_repository:
constructor: NewElasticFlashRepository
arguments:
- "%elastic_client%"
- "%uuid%"
mark_repository:
constructor: NewElasticMarkRepository
arguments:
- "%elastic_client%"
- "%uuid%"
processors:
constructor: NewProcessorList
arguments:
-
- "%mark_processor%"
mark_processor:
constructor: NewMarkProcessor
arguments:
- "%mark_manager%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment