rdev/deployments/k8s/base/templates/go-api
jordan c280a92012 feat: add operations audit system and template improvements
Operations Audit (new feature):
- Add Operation domain model with status tracking (pending, running, completed, failed, cancelled)
- Add OperationRepository with PostgreSQL implementation
- Add OperationService for CRUD and lifecycle management
- Add operations handlers (list, get, cancel endpoints)
- Add migration 015_operations.sql for operations table
- Add operation cleanup worker for stale operation handling
- Add ErrOperationNotFound to domain errors

Template Improvements:
- Add CLAUDE.md configuration files to astro-landing, default, and go-api templates
- Fix PORT template variable usage in nginx configs for app templates
- Add replace directives for local pkg module in Go templates
- Simplify Go service/worker Dockerfiles for workspace builds
- Fix TypeScript error in logger template

Other:
- Refactor landing-test.sh cookbook script
- Update CLAUDE.md version reference

Note: Some files exceed 500-line limit (pre-existing debt + new feature)
- component.go: 550 lines (unchanged, pre-existing)
- main.go: 522 lines (added operations wiring)
- operation_repo.go: 569 lines (new, needs splitting)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 19:08:57 -07:00
..
.claude feat: add operations audit system and template improvements 2026-02-01 19:08:57 -07:00
cmd/api feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
.woodpecker.yml fix: Use repo/tags format for Kaniko plugin (not destinations) 2026-01-29 01:07:49 -07:00
Dockerfile feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
go.mod feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
README.md feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00

{{PROJECT_NAME}}

Go REST API deployed at: https://{{DOMAIN}}

Getting Started

go run ./cmd/api

Endpoints

Method Path Description
GET /health Health check
GET /api/v1/example Example endpoint

Development

# Run
go run ./cmd/api

# Test
go test ./...

# Build
go build -o app ./cmd/api

CI/CD

Pushes to main trigger automatic deployment via Woodpecker CI.