]> git.r.bdr.sh - rbdr/mobius/blame - hotline/ban.go
Delete docs/Screenshot 2024-05-03 at 4.40.09 PM.png
[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}