From d9bc63a10d0978d9a5222cf7be74044e55f409b7 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:36:27 -0700 Subject: Extensive refactor and clean up --- hotline/ban.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hotline/ban.go') diff --git a/hotline/ban.go b/hotline/ban.go index 0b75e8e..14f41b9 100644 --- a/hotline/ban.go +++ b/hotline/ban.go @@ -3,3 +3,8 @@ package hotline import "time" const tempBanDuration = 30 * time.Minute + +type BanMgr interface { + Add(ip string, until *time.Time) error + IsBanned(ip string) (bool, *time.Time) +} -- cgit