Implement caching dns resolver

This commit is contained in:
9seconds
2021-03-30 14:14:37 +03:00
parent 841a4d2227
commit 10b78322a3
16 changed files with 163 additions and 47 deletions
-3
View File
@@ -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 {