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
+7 -2
View File
@@ -1,6 +1,11 @@
package antireplay
const (
DefaultMaxSize = 1024 * 1024 // 1MiB
DefaultErrorRate = 0.001
// DefaultStableBloomFilterMaxSize is a recommended byte size for a
// stable bloom filter.
DefaultStableBloomFilterMaxSize = 1024 * 1024 // 1MiB
// DefaultStableBloomFilterErrorRate is a recommended default error
// rate for a stable bloom filter.
DefaultStableBloomFilterErrorRate = 0.001
)