Upgrade Go version to 1.23.0 and update dependencies. Introduce new application structure with Clean Architecture principles, including message processing, NATS integration, and PostgreSQL repository. Add configuration management using Koanf and structured logging with Zap. Remove legacy GraphQL integration and related files. Implement dependency injection with Google Wire.

This commit is contained in:
windyboy
2025-11-14 08:42:26 +08:00
parent bafbbf470c
commit a574cfcf27
31 changed files with 1565 additions and 1374 deletions
-22
View File
@@ -104,25 +104,6 @@ tasks:
- echo "Linting code..."
- golangci-lint run
install-gq:
desc: Install hasura graphql engine introspection tool
cmds:
- echo "Installing gq..."
- pnpm add -g graphqurl
schema:
desc: Download the GraphQL schema from Hasura server
cmds:
- echo "Downloading GraphQL schema..."
- >
gq {{.hasura_endpoint}} -H 'X-Hasura-Admin-Secret: {{.hasura_secret}}' --introspect > {{.schema_file}}
generate:
desc: Generate code using genqlient
cmds:
- echo "Generating code using genqlient..."
- go get github.com/Khan/genqlient/generate
- cd internal/repository && go run github.com/Khan/genqlient && cd ../..
help:
desc: Show this help message
@@ -140,8 +121,5 @@ tasks:
- echo " task fmt - Format the code"
- echo " task deps - Install dependencies"
- echo " task lint - Lint the code"
- echo " task install-gq - Install hasura graphql engine introspection tool"
- echo " task schema - Download the GraphQL schema from Hasura server"
- echo " task generate - Generate code using genqlient"
- echo " task upgrade - Upgrade go dependencies"
- echo " task help - Show this help message"