v1.2.0
What's New
Features
- Go v2 Module Path - Updated module path to
github.com/felixgeelhaar/fortify/v2for proper Go semantic import versioning (#5) - OnAllow Callback - Added
OnAllowcallback to rate limiter config for tracking allowed requests (#3)
Documentation
- Added comprehensive per-key rate limiting examples:
- Global, per-method, per-client, and combined limiting patterns
- Dynamic key extraction with
KeyFunc
- Documented event callbacks (
OnAllow,OnLimit) for observability - Documented
Metricsinterface implementation
Other Changes
- Updated GitHub Actions to latest versions
- Updated Go version to 1.24
- Fixed CI benchmark workflow
Migration
Update your imports to use the /v2 suffix:
```go
// Before
import "github.com/felixgeelhaar/fortify/ratelimit"
// After
import "github.com/felixgeelhaar/fortify/v2/ratelimit"
```
Coverage
- 84.8% test coverage (passes 80% threshold)
Full Changelog: v1.1.2...v1.2.0