mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
Add EventReplayAttack
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user