b2

package
v0.0.0-...-ef65237 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbsoluteOrRelativeTimeType

type AbsoluteOrRelativeTimeType struct {
	IsDateTime bool
	DateTime   xsd.DateTime // 存储xsd:dateTime类型值
	Duration   xsd.Duration // 存储xsd:duration类型值
}

type AnySimpleType

type AnySimpleType string

type CurrentTime

type CurrentTime xsd.DateTime

<xsd:element name="CurrentTime" type="xsd:dateTime" />

type DateTime

type DateTime string

func (DateTime) Parse

func (obj DateTime) Parse() (time.Time, error)

type FilterType

type FilterType struct {
	TopicExpression []TopicExpression `json:"TopicExpression,omitempty"`
}

<xsd:complexType name="FilterType">

<xsd:sequence>
  <xsd:any minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>

</xsd:complexType>

type FixedTopicSet

type FixedTopicSet bool

<xsd:element name="FixedTopicSet" type="xsd:boolean" default="true"/>

type MessageNotification

type MessageNotification struct {
	Message MessageNotificationHolderType `xml:"Message"`
}

type MessageNotificationHolderType

type MessageNotificationHolderType struct {
	UtcTime           DateTime          `xml:"UtcTime,attr"`
	PropertyOperation PropertyOperation `xml:"PropertyOperation,attr"`
	Source            []SimpleItem      `xml:"Source>SimpleItem"`
	Data              []SimpleItem      `xml:"Data>SimpleItem"`
}

type NotificationMessage

type NotificationMessage NotificationMessageHolderType

<xsd:element name="NotificationMessage" type="wsnt:NotificationMessageHolderType"/>

type NotificationMessageHolderType

type NotificationMessageHolderType struct {
	SubscriptionReference *SubscriptionReference `xml:"SubscriptionReference"`
	Topic                 *Topic                 `xml:"Topic"` // 主题
	ProducerReference     *ProducerReference     `xml:"ProducerReference"`
	Message               MessageNotification    `xml:"Message"`
}

<!-- ================== Message Helper Types ===================== --> XMLName xml.Name `xml:"NotificationMessageHolderType"`

  <xsd:element ref="wsnt:SubscriptionReference" minOccurs="0" maxOccurs="1" />
  <xsd:element ref="wsnt:Topic" minOccurs="0" maxOccurs="1" />
  <xsd:element ref="wsnt:ProducerReference" minOccurs="0" maxOccurs="1" />
  <xsd:element name="Message">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:any namespace="##any" processContents="lax" minOccurs="1" maxOccurs="1"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:sequence>

type ProducerReference

type ProducerReference wsa.EndpointReferenceType

<xsd:element name="ProducerReference" type="wsa:EndpointReferenceType" />

type PropertyOperation

type PropertyOperation string
const (
	PROPERTY_OPERATION_INITIALIZED PropertyOperation = "Initialized"
	PROPERTY_OPERATION_DELETED     PropertyOperation = "Deleted"
	PROPERTY_OPERATION_CHANGED     PropertyOperation = "Changed"
)

type QueryExpressionType

type QueryExpressionType struct {
	XMLName xml.Name           `xml:"QueryExpressionType"`
	Any     []types.AnyElement `xml:",any"`         // <xsd:any minOccurs="0" maxOccurs="1" processContents="lax" />
	Dialect xsd.AnyURI         `xml:"Dialect,attr"` // type="xsd:anyURI" use="required"
}

<xsd:complexType name="QueryExpressionType" mixed="true">

<xsd:sequence>
  <xsd:any minOccurs="0" maxOccurs="1" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="Dialect" type="xsd:anyURI" use="required"/>

</xsd:complexType>

type SimpleItem

type SimpleItem struct {
	// Item name.
	Name string `xml:"Name,attr"` // use="required"
	// Item value. The type is defined in the corresponding description.
	Value AnySimpleType `xml:"Value,attr"` // type="xs:anySimpleType" use="required"
}

type SubscriptionReference

type SubscriptionReference wsa.EndpointReferenceType

<!-- ================= Notification Metadata ===================== -->

<xsd:element name="SubscriptionReference" type="wsa:EndpointReferenceType" />

type TerminationTime

type TerminationTime xsd.DateTime

<xsd:element name="TerminationTime" nillable="true" type="xsd:dateTime" />

type Topic

type Topic TopicExpressionType

<xsd:element name="Topic" type="wsnt:TopicExpressionType" />

type TopicExpression

type TopicExpression TopicExpressionType

<!-- =============== Resource Property Related =================== --> <!-- ======== Resource Properties for NotificationProducer ======== -->

<xsd:element name="TopicExpression" type="wsnt:TopicExpressionType"/>

type TopicExpressionDialect

type TopicExpressionDialect xsd.AnyURI

<xsd:element name="TopicExpressionDialect" type="xsd:anyURI"/>

type TopicExpressionType

type TopicExpressionType struct {
	Dialect xsd.AnyURI `xml:"Dialect,attr"` // 主题方言
	Content string     `xml:",chardata"`    // 主题内容
}

<xsd:complexType name="TopicExpressionType" mixed="true">

<xsd:sequence>
  <xsd:any minOccurs="0" maxOccurs="1" processContents="lax" />
</xsd:sequence>
<xsd:attribute name="Dialect" type="xsd:anyURI" use="required" />
<xsd:anyAttribute/>

</xsd:complexType>

type Unsubscribe

type Unsubscribe struct {
	XMLName xml.Name   `xml:"http://docs.oasis-open.org/wsn/b-2 Unsubscribe"`
	Any     []xml.Name `xml:",any"` // <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
}

type UnsubscribeResponse

type UnsubscribeResponse struct {
	XMLName xml.Name   `xml:"UnsubscribeResponse"`
	Any     []xml.Name `xml:",any"` // <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
}

<xsd:element name="UnsubscribeResponse">

<xsd:complexType>
  <xsd:sequence>
    <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
  </xsd:sequence>
</xsd:complexType>

</xsd:element>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL