Skip to content

Commit

Permalink
Support sourceInfo field in notificationEvent (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored and vadmeste committed Apr 8, 2017
1 parent fdf3754 commit 6d434a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api-notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ type eventMeta struct {
Object objectMeta `json:"object"`
}

// sourceInfo represents information on the client that
// triggered the event notification.
type sourceInfo struct {
Host string `json:"host"`
Port string `json:"port"`
UserAgent string `json:"userAgent"`
}

// NotificationEvent represents an Amazon an S3 bucket notification event.
type NotificationEvent struct {
EventVersion string `json:"eventVersion"`
Expand All @@ -113,6 +121,7 @@ type NotificationEvent struct {
RequestParameters map[string]string `json:"requestParameters"`
ResponseElements map[string]string `json:"responseElements"`
S3 eventMeta `json:"s3"`
Source sourceInfo `json:"source"`
}

// NotificationInfo - represents the collection of notification events, additionally
Expand Down

0 comments on commit 6d434a3

Please sign in to comment.