Files
hideck/internal/api
yibaibaandClaude Fable 5 6a55aceeb9 feat(api): add SMS rate limiting (hourly 3 / daily 10)
Port the SMS rate limiter from github.com/yibaiba/vohive:
- sms_rate_limit.go: limiter with first-hour (3) and daily (10) quotas,
  local-midnight daily reset
- server.go: smsLimiter field + lazy smsRateLimiter(); handleSendSMS returns
  429 sms_rate_limited before the backend send
- sms_rate_limit_test.go: 4 tests (first-hour block, daily block, midnight
  reset, backend not invoked when limited)

Why: brings vohive-open up to date with the latest public vohive while
keeping the rewritten vowifi-go.

Why this works: all 25 packages pass; 4 new limiter tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 09:59:32 +08:00
..
2026-07-06 04:30:39 +08:00
2026-07-06 04:30:39 +08:00
2026-07-06 04:30:39 +08:00
2026-07-06 04:30:39 +08:00
2026-07-06 04:30:39 +08:00
2026-07-06 04:30:39 +08:00