X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/d9bc63a10d0978d9a5222cf7be74044e55f409b7..72f8a1fd5e7fbd5224e3f1393f36cc9b0d58eb78:/hotline/ban.go diff --git a/hotline/ban.go b/hotline/ban.go index 14f41b9..7a9fd31 100644 --- a/hotline/ban.go +++ b/hotline/ban.go @@ -2,7 +2,8 @@ package hotline import "time" -const tempBanDuration = 30 * time.Minute +// BanDuration is the length of time for temporary bans. +const BanDuration = 30 * time.Minute type BanMgr interface { Add(ip string, until *time.Time) error