aboutsummaryrefslogtreecommitdiff
path: root/hotline/ban.go
diff options
context:
space:
mode:
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)
+}