Add documentation for antireplay package

This commit is contained in:
9seconds
2021-04-05 11:35:46 +03:00
parent 5d5b77d73b
commit 3661fe108d
6 changed files with 63 additions and 4 deletions
+3
View File
@@ -6,6 +6,9 @@ type noop struct{}
func (n noop) SeenBefore(_ []byte) bool { return false }
// NewNoop returns an implementation that does nothing. A corresponding
// method always returns false, so this cache accepts everything you
// pass to it.
func NewNoop() mtglib.AntiReplayCache {
return noop{}
}