aboutsummaryrefslogtreecommitdiff
path: root/hotline/ban.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-07-09 21:36:27 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-07-09 21:42:05 -0700
commitd9bc63a10d0978d9a5222cf7be74044e55f409b7 (patch)
tree1797c9593c279bf1334ed8285de8054a92a28dcb /hotline/ban.go
parent8fa166777cbcd92e871e937d9557f0f1a732c04d (diff)
Extensive refactor and clean up
Diffstat (limited to 'hotline/ban.go')
-rw-r--r--hotline/ban.go5
1 files changed, 5 insertions, 0 deletions
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)
+}