-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbindsubscribe.go
46 lines (37 loc) · 1.37 KB
/
bindsubscribe.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
package resources
type NodeManagementBindingData struct {
BindingEntries []*BindSubscribeEntry `xml:"bindingEntries"`
}
type BindSubscribeEntry struct {
ClientAddress FeatureAddressType `xml:"clientAddress"`
ServerAddress FeatureAddressType `xml:"serverAddress"`
}
type NodeManagementSubscriptionData struct {
SubscriptionEntries []*BindSubscribeEntry `xml:"subscriptionEntries"`
}
type NodeManagementBindingRequestCall struct {
BindingRequest *BindingManagementRequestCallType `xml:"bindingRequest"`
}
type BindingManagementRequestCallType struct {
ClientAddress *FeatureAddressType `xml:"clientAddress"`
ServerAddress *FeatureAddressType `xml:"serverAddress"`
ServerFeatureType string `xml:"serverFeatureType"`
}
type NodeManagementSubscriptionRequestCall struct {
SubscriptionRequest *SubscriptionManagementRequestCallType `xml:"subscriptionRequest"`
}
type SubscriptionManagementRequestCallType struct {
ClientAddress *FeatureAddressType `xml:"clientAddress"`
ServerAddress *FeatureAddressType `xml:"serverAddress"`
ServerFeatureType string `xml:"serverFeatureType"`
}
type ResultElement struct {
ErrorNumber int `xml:"errorNumber"`
Description string `xml:"description"`
}
func ResultData(errorNumber int, description string) *ResultElement {
return &ResultElement{
ErrorNumber: errorNumber,
Description: description,
}
}