aboutsummaryrefslogtreecommitdiff
path: root/hotline/ban.go
blob: 7a9fd31a41dcae251c30708fe113521ee422efa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
package hotline

import "time"

// BanDuration is the length of time for temporary bans.
const BanDuration = 30 * time.Minute

type BanMgr interface {
	Add(ip string, until *time.Time) error
	IsBanned(ip string) (bool, *time.Time)
}