]> git.r.bdr.sh - rbdr/mobius/blob - hotline/ban.go
Update README.md
[rbdr/mobius] / hotline / ban.go
1 package hotline
2
3 import "time"
4
5 // BanDuration is the length of time for temporary bans.
6 const BanDuration = 30 * time.Minute
7
8 type BanMgr interface {
9 Add(ip string, until *time.Time) error
10 IsBanned(ip string) (bool, *time.Time)
11 }