atom

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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