Created
May 20, 2022 11:02
-
-
Save AntonStoeckl/173df1645517a2bf3d56d5d448f40ce2 to your computer and use it in GitHub Desktop.
Example for Blog Post "Hexagonal Architecture: Structuring a project and the influence of granularity"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
game | |
├── application | |
│ ├── deckselection | |
│ │ ├── commands.go # all commands | |
│ │ ├── commands_test.go # unit tests | |
│ │ ├── integration_test.go # driver adapter | |
│ │ ├── select_deck_command_handler.go # driver port definition and implementation | |
│ │ ├── select_deck_command_handler_test.go # driver adapter | |
│ │ ├── select_deck.go # domain logic | |
│ │ ├── select_deck_http_handler.go # driver adapter | |
│ │ ├── select_deck_test.go # unit tests | |
│ │ ├── unselect_deck_command_handler.go # driver port definition and implementation | |
│ │ ├── unselect_deck_command_handler_test.go # driver adapter | |
│ │ ├── unselect_deck.go # domain logic | |
│ │ ├── unselect_deck_http_handler.go # driver adapter | |
│ │ ├── unselect_deck_test.go # unit tests | |
│ │ └── # more files skipped | |
│ ├── enrollment | |
│ │ └── # files skipped | |
│ ├── gameplay | |
│ │ └── # files skipped | |
│ └── dependencies.go # driven ports for all use cases | |
├── infrastructure | |
│ ├── esdb | |
│ │ ├── event_store.go # dependency impl. for driven adapter | |
│ │ ├── player_event_store.go # driven adapter | |
│ │ └── # more files skipped | |
│ ├── # more packages skipped | |
│ └── dependencies.go # dependency interfaces for driven adapters | |
├── events.go # all events, shared between use-cases | |
└── # more shared domain code (value objects, entities, ...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment