create_consumer_structure

Function create_consumer_structure 

Source
pub fn create_consumer_structure(project_path: &Path) -> Result<()>
Expand description

Create the Consumer Architecture directory structure

Creates all necessary directories for a Consumer (event handler) service:

  • src/ - Source code root
  • src/domain/ - Domain layer (events, handlers)
  • src/application/ - Application layer (consumer orchestration)
  • src/infrastructure/ - Infrastructure layer (broker, idempotency, health)
  • tests/ - Integration tests

§Arguments

  • project_path - Root path where the project directories will be created

§Errors

Returns an error if any directory creation fails