Documentation
¶
Index ¶
- Variables
- type AbsoluteOrRelativeTimeType
- type CurrentTime
- type ExtensibleDocumented
- type FilterType
- type FixedTopicSet
- type Message
- type NotificationMessage
- type NotificationMessageHolderType
- type ProducerReference
- type SubscriptionReference
- type TerminationTime
- type Topic
- type TopicExpressionDialect
- type TopicExpressionType
- type TopicSet
- type TopicSetType
- type Unsubscribe
- type UnsubscribeResponse
Constants ¶
This section is empty.
Variables ¶
var WsnBw2Namespace = map[string]string{
"wsntw": "http://docs.oasis-open.org/wsn/bw-2",
"wsnt": "http://docs.oasis-open.org/wsn/b-2",
"wsa": "http://www.w3.org/2005/08/addressing",
"wsrf-rw": "http://docs.oasis-open.org/wsrf/rw-2",
"xsd": "http://www.w3.org/2001/XMLSchema",
"wsdl": "http://schemas.xmlsoap.org/wsdl/",
}
<wsdl:definitions name="WS-BaseNotification" targetNamespace="http://docs.oasis-open.org/wsn/bw-2" xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:import namespace="http://docs.oasis-open.org/wsrf/rw-2" location="http://docs.oasis-open.org/wsrf/rw-2.wsdl"/>
Functions ¶
This section is empty.
Types ¶
type AbsoluteOrRelativeTimeType ¶
type AbsoluteOrRelativeTimeType struct {
IsDateTime bool
DateTime xs.DateTime // 存储xsd:dateTime类型值
Duration xs.Duration // 存储xsd:duration类型值
}
<xsd:simpleType name="AbsoluteOrRelativeTimeType">
<xsd:union memberTypes="xsd:dateTime xsd:duration" />
</xsd:simpleType>
type CurrentTime ¶
<xsd:element name="CurrentTime" type="xsd:dateTime" />
type ExtensibleDocumented ¶
type ExtensibleDocumented struct {
}
type FilterType ¶
type FilterType struct {
// XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema FilterType"`
Any []struct {
Content []byte `xml:",innerxml"`
Name xml.Name
} `xml:",any"` // <xsd:any minOccurs="0" maxOccurs="unbounded"/>
}
type FixedTopicSet ¶
type FixedTopicSet bool
<xsd:element name="FixedTopicSet" type="xsd:boolean" default="true"/>
type Message ¶
type Message struct {
}
<!-- ================== Message Helper Types ===================== -->
type NotificationMessage ¶
type NotificationMessage NotificationMessageHolderType
<xsd:element name="NotificationMessage" type="wsnt:NotificationMessageHolderType"/>
type NotificationMessageHolderType ¶
type NotificationMessageHolderType struct {
// XMLName xml.Name `xml:"wsnt:NotificationMessageHolderType"`
// <xsd:element ref="wsnt:SubscriptionReference" minOccurs="0" maxOccurs="1" />
SubscriptionReference *SubscriptionReference `xml:"SubscriptionReference,omitempty"` // minOccurs="0" maxOccurs="1"
// <xsd:element ref="wsnt:Topic" minOccurs="0" maxOccurs="1" />
Topic *Topic `xml:"Topic,omitempty"` // minOccurs="0" maxOccurs="1"
// <xsd:element ref="wsnt:ProducerReference" minOccurs="0" maxOccurs="1" />
ProducerReference *ProducerReference `xml:"ProducerReference,omitempty"` // minOccurs="0" maxOccurs="1"
Message Message `xml:"Message"`
}
type ProducerReference ¶
type ProducerReference wsa.EndpointReferenceType
<xsd:element name="ProducerReference" type="wsa:EndpointReferenceType" />
type SubscriptionReference ¶
type SubscriptionReference wsa.EndpointReferenceType
<!-- ================= Notification Metadata ===================== -->
<xsd:element name="SubscriptionReference" type="wsa:EndpointReferenceType" />
type TerminationTime ¶
<xsd:element name="TerminationTime" nillable="true" type="xsd:dateTime" />
type Topic ¶
type Topic TopicExpressionType
<xsd:element name="Topic" type="wsnt:TopicExpressionType" />
type TopicExpressionDialect ¶
type TopicExpressionType ¶
type TopicSet ¶
type TopicSet TopicSetType
type TopicSetType ¶
type TopicSetType struct {
// XMLName xml.Name `xml:"wstop:TopicSetType"`
ExtensibleDocumented
}
type Unsubscribe ¶
type Unsubscribe struct {
}
type UnsubscribeResponse ¶
type UnsubscribeResponse struct {
}