File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Makefile
1+ .PHONY : run test test-integration test-race load-test proto lint build docker k8s-apply
2+
3+ run :
4+ go run ./cmd/server/...
5+
6+ test :
7+ go test ./internal/... -v -race
8+
9+ test-integration :
10+ go test -tags=integration ./tests/integration/... -v
11+
12+ test-race :
13+ go test ./... -race
14+
15+ load-test :
16+ k6 run ./tests/load/k6_ramp.js --out json=tests/load/benchmarks/result.json
17+
18+ load-test-vegeta :
19+ ./tests/load/vegeta_attack.sh 1000 60s
20+
21+ proto :
22+ protoc --go_out=. --go-grpc_out=. proto/ratelimiter.proto
23+
24+ lint :
25+ golangci-lint run ./...
26+
27+ build :
28+ go build -o bin/server ./cmd/server/...
29+
30+ docker :
31+ docker build -t rate-limiter:latest .
32+
33+ k8s-apply :
34+ kubectl apply -f deploy/k8s/redis.yaml
35+ kubectl apply -f deploy/k8s/configmap.yaml
36+ kubectl apply -f deploy/k8s/deployment.yaml
37+ kubectl apply -f deploy/k8s/service.yaml
38+ kubectl apply -f deploy/k8s/hpa.yaml
Original file line number Diff line number Diff line change 1- // go.mod
1+ module github.com/Pavan-Rana/rate-limiter
2+
3+ go 1.22
4+
5+ require (
6+ github.com/prometheus/client_golang v1.19.0
7+ github.com/redis/go-redis/v9 v9.5.1
8+ google.golang.org/grpc v1.63.2
9+ google.golang.org/protbuf v1.34.1
10+ )
You can’t perform that action at this time.
0 commit comments