Mini GoLang framework for writing http or grpc api and command line tools.
- API server and Cmd creation
- SQL Database
- Redis
- Open telemetry for tracing/metrics
- Trace all incoming requests
- All outbound HTTP or gRPC requests
- All Postgres queries
- All Redis commands
- Export Spans to GCP Cloud trace based on config
- Logs to go to stdout and stderr
- Configurations by Environment
To run the tests, mysql and redis needs to run on the default ports 3306 and 6379 respectively. Following docker commands can be used:
docker run --name gofr-mysql -e MYSQL_ROOT_PASSWORD=password -p3306:3306 mysql:latest
docker run --name gofr-redis -p6379:6379 redis:latest