create_websocket_structure

Function create_websocket_structure 

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

Create the WebSocket Gateway Architecture directory structure

Creates all necessary directories for a WebSocket Gateway service:

  • src/ - Source code root
  • src/domain/ - Domain layer (messages, connections)
  • src/application/ - Application layer (hub)
  • src/infrastructure/ - Infrastructure layer (health checks)
  • src/presentation/ - Presentation layer (WebSocket handlers)
  • tests/ - Integration tests

§Arguments

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

§Errors

Returns an error if any directory creation fails