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