Deprecated: The latest supported version of this library is at github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus

package atom

import "github.com/Azure/azure-service-bus-go/atom"

Index

Types

type Author

type Author struct {
	XMLName xml.Name `xml:"author"`
	Name    *string  `xml:"name,omitempty"`
}

Author is an Atom author used in an entry

type Content

type Content struct {
	XMLName xml.Name `xml:"content"`
	Type    string   `xml:"type,attr"`
	Body    string   `xml:",innerxml"`
}

Content is a generic body for an Atom entry

type Entry

type Entry struct {
	XMLName                   xml.Name   `xml:"entry"`
	ID                        string     `xml:"id,omitempty"`
	Title                     string     `xml:"title,omitempty"`
	Published                 *date.Time `xml:"published,omitempty"`
	Updated                   *date.Time `xml:"updated,omitempty"`
	Author                    *Author    `xml:"author,omitempty"`
	Link                      *Link      `xml:"link,omitempty"`
	Content                   *Content   `xml:"content"`
	DataServiceSchema         string     `xml:"xmlns:d,attr,omitempty"`
	DataServiceMetadataSchema string     `xml:"xmlns:m,attr,omitempty"`
	AtomSchema                string     `xml:"xmlns,attr"`
}

Entry is the Atom wrapper for a management request

type Feed

type Feed struct {
	XMLName xml.Name   `xml:"feed"`
	ID      string     `xml:"id"`
	Title   string     `xml:"title"`
	Updated *date.Time `xml:"updated,omitempty"`
	Entries []Entry    `xml:"entry"`
}

Feed is an Atom feed which contains entries

type Link struct {
	XMLName xml.Name `xml:"link"`
	Rel     string   `xml:"rel,attr"`
	HREF    string   `xml:"href,attr"`
}

Link is an Atom link used in an entry

Source Files

atom.go

Version
v0.11.5 (latest)
Published
Nov 16, 2021
Platform
linux/amd64
Imports
2 packages
Last checked
3 months ago

Tools for package owners.