test-some-app/openspec/changes/archive/2026-11-16-tsa-1-go-backend-skeleton/design.md
Peppa 2f970ae60d
Some checks failed
ci / checks (pull_request) Has been cancelled
deploy / deploy (pull_request) Has been cancelled
TSA-1: Go backend skeleton with /health
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:53:04 +05:00

8 lines
479 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Дизайн
- Только стандартная библиотека Go (`net/http`), фреймворк не нужен.
- `main.go` в `cmd/server`: обработчик `/health`, `http.Server`, `signal.NotifyContext` (SIGINT/SIGTERM) и `Shutdown` с таймаутом 5 с; штатная остановка — код выхода 0.
- Порт: `PORT`, иначе `8080`.
- Версия Go: 1.22 в `go.mod`.
- Запуск одной командой: `make run`.