| 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 | } |