]> git.r.bdr.sh - rbdr/mobius/blame - hotline/ban.go
Create go-proxy-warming
[rbdr/mobius] / hotline / ban.go
CommitLineData
46862572
JH
1package hotline
2
3import "time"
4
5const tempBanDuration = 30 * time.Minute
d9bc63a1
JH
6
7type BanMgr interface {
8 Add(ip string, until *time.Time) error
9 IsBanned(ip string) (bool, *time.Time)
10}