]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/ban.go
Extensive refactor and clean up
[rbdr/mobius] / hotline / ban.go
index 0b75e8ee3e732a194b33c28c50039b3c095af112..14f41b9728253353cdbcf40fe6eb5c56d87ecde6 100644 (file)
@@ -3,3 +3,8 @@ package hotline
 import "time"
 
 const tempBanDuration = 30 * time.Minute
 import "time"
 
 const tempBanDuration = 30 * time.Minute
+
+type BanMgr interface {
+       Add(ip string, until *time.Time) error
+       IsBanned(ip string) (bool, *time.Time)
+}