Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to combine Hexagonal Architecture with this layout? #170

Open
vahdet opened this issue May 2, 2022 · 0 comments
Open

How to combine Hexagonal Architecture with this layout? #170

vahdet opened this issue May 2, 2022 · 0 comments

Comments

@vahdet
Copy link

vahdet commented May 2, 2022

I am trying to make use of this layout with hexagonal architecture. Is there a subset of this layout for that purpose or anybody here knows of one from somewhere else?

For now, I am using the folders like this:

  • Domain Logic & Entities: internal/domain
  • Service Layer interface & implementations: internal/app/service
  • Datasource interfaces (either database or outer services): internal/app/repo
  • Datasource *implemenrtations:
    • Database: internal/transport/egress/db
    • Outer Services (no matter REST and gRPC): internal/transport/egress/http
  • Server methods:
    • Served REST API methods: pkg/api/http
    • Served gRPC methods: pkg/api/grpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant