-
Notifications
You must be signed in to change notification settings - Fork 143
/
sns_messages.go
136 lines (109 loc) · 3.7 KB
/
sns_messages.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package app
/*** List Topics Response */
type TopicArnResult struct {
TopicArn string `xml:"TopicArn"`
}
type TopicNamestype struct {
Member []TopicArnResult `xml:"member"`
}
type ListTopicsResult struct {
Topics TopicNamestype `xml:"Topics"`
}
type ListTopicsResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result ListTopicsResult `xml:"ListTopicsResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Create Topic Response */
type CreateTopicResult struct {
TopicArn string `xml:"TopicArn"`
}
type CreateTopicResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result CreateTopicResult `xml:"CreateTopicResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Create Subscription ***/
type SubscribeResult struct {
SubscriptionArn string `xml:"SubscriptionArn"`
}
type SubscribeResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result SubscribeResult `xml:"SubscribeResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** ConfirmSubscriptionResponse ***/
type ConfirmSubscriptionResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result SubscribeResult `xml:"ConfirmSubscriptionResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Set Subscription Response ***/
type SetSubscriptionAttributesResponse struct {
Xmlns string `xml:"xmlns,attr"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Get Subscription Attributes ***/
type GetSubscriptionAttributesResult struct {
SubscriptionAttributes SubscriptionAttributes `xml:"Attributes,omitempty"`
}
type SubscriptionAttributes struct {
/* SubscriptionArn, FilterPolicy */
Entries []SubscriptionAttributeEntry `xml:"entry,omitempty"`
}
type SubscriptionAttributeEntry struct {
Key string `xml:"key,omitempty"`
Value string `xml:"value,omitempty"`
}
type GetSubscriptionAttributesResponse struct {
Xmlns string `xml:"xmlns,attr,omitempty"`
Result GetSubscriptionAttributesResult `xml:"GetSubscriptionAttributesResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata,omitempty"`
}
/*** List Subscriptions Response */
type TopicMemberResult struct {
TopicArn string `xml:"TopicArn"`
Protocol string `xml:"Protocol"`
SubscriptionArn string `xml:"SubscriptionArn"`
Owner string `xml:"Owner"`
Endpoint string `xml:"Endpoint"`
}
type TopicSubscriptions struct {
Member []TopicMemberResult `xml:"member"`
}
type ListSubscriptionsResult struct {
Subscriptions TopicSubscriptions `xml:"Subscriptions"`
}
type ListSubscriptionsResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result ListSubscriptionsResult `xml:"ListSubscriptionsResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** List Subscriptions By Topic Response */
type ListSubscriptionsByTopicResult struct {
Subscriptions TopicSubscriptions `xml:"Subscriptions"`
}
type ListSubscriptionsByTopicResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result ListSubscriptionsResult `xml:"ListSubscriptionsResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Publish ***/
type PublishResult struct {
MessageId string `xml:"MessageId"`
}
type PublishResponse struct {
Xmlns string `xml:"xmlns,attr"`
Result PublishResult `xml:"PublishResult"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Unsubscribe ***/
type UnsubscribeResponse struct {
Xmlns string `xml:"xmlns,attr"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}
/*** Delete Topic ***/
type DeleteTopicResponse struct {
Xmlns string `xml:"xmlns,attr"`
Metadata ResponseMetadata `xml:"ResponseMetadata"`
}