Skip to main content

create_gateway_structure

Function create_gateway_structure 

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

Create the Gateway Architecture directory structure

Creates all necessary directories for a Gateway service:

  • src/ - Source code root
  • src/domain/ - Domain layer (entities, repository traits)
  • src/application/ - Application layer (services, use cases)
  • src/infrastructure/ - Infrastructure layer (HTTP client, cache, auth)
  • src/presentation/ - Presentation layer (gRPC handlers)
  • proto/ - Protocol buffer definitions
  • tests/ - Integration tests

§Arguments

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

§Errors

Returns an error if any directory creation fails