Skip to content

Instantly share code, notes, and snippets.

@jmervine
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save jmervine/58de0cc4ff9f1eb03190 to your computer and use it in GitHub Desktop.

Select an option

Save jmervine/58de0cc4ff9f1eb03190 to your computer and use it in GitHub Desktop.
SNS JSON Message as Golang Struct
type SNSData struct {
Subject string `json:"Subject"`
Message string `json:"Message"`
MessageID string `json:"MessageId"`
Signature string `json:"Signature"`
SignatureVersion string `json:"SignatureVersion"`
SigningCertURL string `json:"SigningCertURL"`
SubscribeURL string `json:"SubscribeURL"`
Timestamp string `json:"Timestamp"`
Token string `json:"Token"`
TopicArn string `json:"TopicArn"`
Type string `json:"Type"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment