X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/270abe9a991a57084650424a0238ef4f062b0b64..4fa4a57c4352f703958c3c5cb8dcd2b56cb35882:/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) +}