Skip to content

refactor: AGENTS.md 仕様に準拠#4

Open
murasame29 wants to merge 1 commit intomasterfrom
refactor/agents-compliance
Open

refactor: AGENTS.md 仕様に準拠#4
murasame29 wants to merge 1 commit intomasterfrom
refactor/agents-compliance

Conversation

@murasame29
Copy link
Copy Markdown
Owner

概要

AGENTS.md の仕様に準拠するようテンプレートを更新しました。

変更内容

HTTP Server Rules

  • Echo を net/http.ServeMux (Go 1.22+) に変更
  • Health Check エンドポイントを /livez, /readyz に変更

Configuration Rules

  • グローバル変数 Config を廃止
  • internal/config/config.go に設定を移動
  • DI コンテナ経由で設定を注入

Middleware Pattern

  • func(http.Handler) http.Handler 型のミドルウェアを実装
  • middleware.Chain() で連結
  • Recovery, Logging ミドルウェアを追加

Common Server Rules

  • pkg/lifecycle.Application インターフェースを追加
  • Graceful Shutdown 対応

その他

  • Go 1.24 に更新
  • Dockerfile を更新
  • README を更新

- Echo を net/http.ServeMux に変更
- Config をグローバル変数から DI 経由に変更
- internal/config に設定を移動
- Health Check を /livez, /readyz に変更
- Middleware パターン (Recovery, Logging) を追加
- pkg/lifecycle.Application インターフェースを追加
- Go 1.24 に更新
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

Successfully merging this pull request may close these issues.

1 participant