Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit eb0e98d

Browse files
committed
Add event struct to library
Signed-off-by: Andy Lo-A-Foe <andy.loafoe@gmail.com>
1 parent 22f180c commit eb0e98d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

notification/event.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package notification
2+
3+
import (
4+
"time"
5+
)
6+
7+
// Event is an Amazon SNS HTTP message on which HSDP Notification is currently based on
8+
type Event struct {
9+
Type string `json:"Type"`
10+
MessageID string `json:"MessageId"`
11+
Token string `json:"Token"`
12+
TopicARN string `json:"TopicArn"`
13+
Message string `json:"Message"`
14+
Subject string `json:"Subject,omitempty"`
15+
SubscribeURL string `json:"SubscribeURL,omitempty"`
16+
Timestamp time.Time `json:"Timestamp"`
17+
SignatureVersion string `json:"SignatureVersion"`
18+
Signature string `json:"Signature"`
19+
SigningCertURL string `json:"SigningCertURL"`
20+
}

0 commit comments

Comments
 (0)