Add documentation for timeattack

This commit is contained in:
9seconds
2021-04-06 11:03:51 +03:00
parent 372c703ad6
commit a3bae795c4
4 changed files with 18 additions and 3 deletions
+1
View File
@@ -10,6 +10,7 @@ type noop struct{}
func (n noop) Valid(_ time.Time) error { return nil }
// NewNoop returns TimeAttackDetector which accepts all timestamps.
func NewNoop() mtglib.TimeAttackDetector {
return noop{}
}