drrainlab / go-hexagonal

Hexagonal (Ports and Adapter) Architecture Implementation in GO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hexagonal Architecture Implementation in Go

Project Structure

│   .gitignore
│   go.mod
│   go.sum
│   main.go
│   README.md
│
├───cmd
│   ├───cli
│   │       main.go
│   │
│   └───http
│           main.go
│
├───config
│   ├───local
│   │       config.go
│   │
│   └───server
│           config.go
│
└───internal
    ├───adapters
    ├───core
    │   ├───domain
    │   │       author.go
    │   │       book.go
    │   │
    │   ├───ports
    │   │       Irepositories.go
    │   │       Iservices.go
    │   │
    │   └───services
    │           author_service.go
    │           book_service.go
    │
    ├───handlers
    │   ├───grpc
    │   └───http
    │           author_handler.go
    │           book_handler.go
    │
    ├───middleware
    │       azure_ad_middleware.go
    │       role_based_access_control.go
    │
    └───repositories
        ├───mongo
        ├───mssql
        │       author_mssql.go
        │       book_mssql.go
        │
        └───postgres
                author_postgres.go
                book_postgres.go

About

Hexagonal (Ports and Adapter) Architecture Implementation in GO


Languages

Language:Go 100.0%