在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sgerber-hyperanna/ktor-hexagonal-multi-module-template开源软件地址(OpenSource Url):https://github.com/sgerber-hyperanna/ktor-hexagonal-multi-module-template开源编程语言(OpenSource Language):Kotlin 99.4%开源软件介绍(OpenSource Introduction):Ktor Ports and Adapters Multi Module TemplateA dummy services that illustrates:
TestingRun Running locallyCreate the directory
Run Project StructureThis project follows a 'ports and adapters' (a.k.a. hexagonal) architecture and is divided into modules DomainThe centre of the hexagon, contains core business logic. Depends on
What goes here?
What does not go here?
AdaptersEverything outside the hexagon. Nothing related to business logic. Depends on
What goes here?
What does not go here?
PortsThe 'ports' layer is the only way 'domain' and 'adapters' interact. It is divided into:
Depends on
Provided portsInterfaces (and data classes) implemented by the domain sub-project. The adapter layer uses this to communicate with domain code. What goes here?
What does not go here?
Required portsInterfaces (and data classes) implemented by the adapters sub-project. The domain layer uses this to communicate with adapter layer. What goes here?
What does not go here?
AppThis layer can see all other layers and is responsible for bootstrapping the running application Depends on
What goes here?
What does not go here?
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论