Skip to content

アーキテクチャのアイデア #18

Description

@taniiicom

案 1

infolinkapi/
├── main.go                 # アプリケーションのエントリーポイント
├── go.mod                  # モジュール依存関係を管理
├── go.sum                  # 依存関係の具体的なバージョンを固定
├── .env                    # 環境変数
├── src
│   ├── domain/            # ドメイン層 (ビジネスロジック)
│   │   └── model.go
│   │   └── main.go
│   ├── infrastructure/       # データの永続化
│   │   └── main.go
│   ├── interface/                 # リクエストとレスポンス
│   │   └── model.go
│   │   └── main.go
│   ├── middlewares/            # ミドルウェア (認証、ログ、エラーハンドリングなど)
│   └── auth.go
├── config/
└── public/                  # テンプレートや静的ファイル
    └── index.html

案 2

infolinkapi/
├── main.go                 # アプリケーションのエントリーポイント
├── go.mod                  # モジュール依存関係を管理
├── go.sum                  # 依存関係の具体的なバージョンを固定
├── .env                    # 環境変数
├── src
│   ├── domain/            # ドメイン層 (ビジネスロジック) && データの永続化
│   │   └── model.go
│   │   └── main.go
│   ├── interface/                 # リクエストとレスポンス
│   │   └── model.go
│   │   └── main.go
│   ├── middlewares/            # ミドルウェア (認証、ログ、エラーハンドリングなど)
│   └── auth.go
├── config/
└── public/                  # テンプレートや静的ファイル
    └── index.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions