Add timeattack detector

This commit is contained in:
9seconds
2021-03-18 11:07:51 +03:00
parent 172b596cf1
commit f3112d4ba6
7 changed files with 124 additions and 12 deletions
+5
View File
@@ -5,6 +5,7 @@ import (
"errors"
"net"
"net/http"
"time"
)
var (
@@ -46,6 +47,10 @@ type EventStream interface {
Shutdown()
}
type TimeAttackDetector interface {
Valid(time.Time) error
}
type Logger interface {
Named(name string) Logger