-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathoperation.go
130 lines (108 loc) · 3.94 KB
/
operation.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
package event
import (
"github.com/use-go/onvif/xsd"
)
//GetServiceCapabilities action
type GetServiceCapabilities struct {
XMLName string `xml:"tev:GetServiceCapabilities"`
}
//GetServiceCapabilitiesResponse type
type GetServiceCapabilitiesResponse struct {
Capabilities Capabilities
}
//SubscriptionPolicy action
type SubscriptionPolicy struct { //tev http://www.onvif.org/ver10/events/wsdl
ChangedOnly xsd.Boolean `xml:"ChangedOnly,attr"`
}
//Subscribe action for subscribe event topic
type Subscribe struct { //http://docs.oasis-open.org/wsn/b-2.xsd
XMLName struct{} `xml:"wsnt:Subscribe"`
ConsumerReference EndpointReferenceType `xml:"wsnt:ConsumerReference"`
Filter FilterType `xml:"wsnt:Filter"`
SubscriptionPolicy SubscriptionPolicy `xml:"wsnt:SubscriptionPolicy"`
InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"wsnt:InitialTerminationTime"`
}
//SubscribeResponse message for subscribe event topic
type SubscribeResponse struct { //http://docs.oasis-open.org/wsn/b-2.xsd
SubscriptionReference EndpointReferenceType
CurrentTime CurrentTime
TerminationTime TerminationTime
}
//Renew action for refresh event topic subscription
type Renew struct { //http://docs.oasis-open.org/wsn/b-2.xsd
TerminationTime AbsoluteOrRelativeTimeType `xml:"wsnt:TerminationTime"`
}
//RenewResponse for Renew action
type RenewResponse struct { //http://docs.oasis-open.org/wsn/b-2.xsd
TerminationTime TerminationTime `xml:"wsnt:TerminationTime"`
CurrentTime CurrentTime `xml:"wsnt:CurrentTime"`
}
//Unsubscribe action for Unsubscribe event topic
type Unsubscribe struct { //http://docs.oasis-open.org/wsn/b-2.xsd
Any string
}
//UnsubscribeResponse message for Unsubscribe event topic
type UnsubscribeResponse struct { //http://docs.oasis-open.org/wsn/b-2.xsd
Any string
}
//CreatePullPointSubscription action
type CreatePullPointSubscription struct {
XMLName string `xml:"tev:CreatePullPointSubscription"`
Filter FilterType `xml:"tev:Filter"`
InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"wsnt:InitialTerminationTime"`
SubscriptionPolicy SubscriptionPolicy `xml:"wsnt:sSubscriptionPolicy"`
}
//CreatePullPointSubscriptionResponse action
type CreatePullPointSubscriptionResponse struct {
SubscriptionReference EndpointReferenceType
CurrentTime CurrentTime
TerminationTime TerminationTime
}
//GetEventProperties action
type GetEventProperties struct {
XMLName string `xml:"tev:GetEventProperties"`
}
//GetEventPropertiesResponse action
type GetEventPropertiesResponse struct {
TopicNamespaceLocation xsd.AnyURI
FixedTopicSet FixedTopicSet
TopicSet TopicSet
TopicExpressionDialect TopicExpressionDialect
MessageContentFilterDialect xsd.AnyURI
ProducerPropertiesFilterDialect xsd.AnyURI
MessageContentSchemaLocation xsd.AnyURI
}
//Port type PullPointSubscription
//PullMessages Action
type PullMessages struct {
XMLName string `xml:"tev:PullMessages"`
Timeout xsd.Duration `xml:"tev:Timeout"`
MessageLimit xsd.Int `xml:"tev:MessageLimit"`
}
//PullMessagesResponse response type
type PullMessagesResponse struct {
CurrentTime CurrentTime
TerminationTime TerminationTime
NotificationMessage NotificationMessage
}
//PullMessagesFaultResponse response type
type PullMessagesFaultResponse struct {
MaxTimeout xsd.Duration
MaxMessageLimit xsd.Int
}
//Seek action
type Seek struct {
XMLName string `xml:"tev:Seek"`
UtcTime xsd.DateTime `xml:"tev:UtcTime"`
Reverse xsd.Boolean `xml:"tev:Reverse"`
}
//SeekResponse action
type SeekResponse struct {
}
//SetSynchronizationPoint action
type SetSynchronizationPoint struct {
XMLName string `xml:"tev:SetSynchronizationPoint"`
}
//SetSynchronizationPointResponse action
type SetSynchronizationPointResponse struct {
}