mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:54:01 +03:00
Add timeattack detector
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user