Add EventReplayAttack

This commit is contained in:
9seconds
2021-03-29 12:07:18 +03:00
parent bef14bd009
commit daa8b9c798
14 changed files with 114 additions and 3 deletions
+13
View File
@@ -99,3 +99,16 @@ func (e EventIPBlocklisted) StreamID() string {
func (e EventIPBlocklisted) Timestamp() time.Time {
return e.CreatedAt
}
type EventReplayAttack struct {
CreatedAt time.Time
ConnID string
}
func (e EventReplayAttack) StreamID() string {
return e.ConnID
}
func (e EventReplayAttack) Timestamp() time.Time {
return e.CreatedAt
}