Add antireplay cache

This commit is contained in:
9seconds
2021-03-15 10:43:32 +03:00
parent ab585fd699
commit ab1b3b4863
7 changed files with 97 additions and 0 deletions
+4
View File
@@ -17,6 +17,10 @@ type Network interface {
IdleTimeout() time.Duration
}
type AntiReplayCache interface {
SeenBefore(data []byte) bool
}
type Logger interface {
Named(name string) Logger