mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:04:02 +03:00
Implement caching dns resolver
This commit is contained in:
@@ -35,12 +35,10 @@ type Network interface {
|
||||
|
||||
type AntiReplayCache interface {
|
||||
SeenBefore(data []byte) bool
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type IPBlocklist interface {
|
||||
Contains(net.IP) bool
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type Event interface {
|
||||
@@ -50,7 +48,6 @@ type Event interface {
|
||||
|
||||
type EventStream interface {
|
||||
Send(context.Context, Event)
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type TimeAttackDetector interface {
|
||||
|
||||
Reference in New Issue
Block a user