Files
traefik-botfilter/cache.go
T

23 lines
266 B
Go

package botfilter
import (
"sync"
"time"
)
type scoreEvent struct {
at time.Time
points int
}
type clientState struct {
banUntil time.Time
lastSeen time.Time
requests int
sawHome bool
sawStatic bool
sawFavicon bool
events []scoreEvent
}