From b788f1db5477bebb65a94d0a661cf31f2efd20f8 Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 15 Jan 2026 18:44:00 +0800 Subject: [PATCH] feat(botfilter): add clientState --- cache.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cache.go b/cache.go index eb291d55..a5a92a9a 100644 --- a/cache.go +++ b/cache.go @@ -10,3 +10,13 @@ type scoreEvent struct { points int } +type clientState struct { + banUntil time.Time + lastSeen time.Time + requests int + sawHome bool + sawStatic bool + sawFavicon bool + events []scoreEvent +} +