opds

package
v0.0.0-...-20afc43 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	XMLName xml.Name `xml:"category"`
	Term    string   `xml:"term,attr"`
	Content string   `xml:",chardata"`
}

type Entry

type Entry struct {
	XMLName      xml.Name `xml:"entry"`
	Xmlns        string   `xml:"xmlns,attr,omitempty"`
	ThrXmlns     string   `xml:"xmlns:thr,attr,omitempty"`
	DctermsXmlns string   `xml:"xmlns:dcterms,attr,omitempty"`
	OpdsXmlns    string   `xml:"xmlns:opds,attr,omitempty"`
	PseXmlns     string   `xml:"xmlns:pse,attr,omitempty"`
	XsiXmlns     string   `xml:"xmlns:xsi,attr,omitempty"`
	SchemaXmlns  string   `xml:"xmlns:schema,attr,omitempty"`

	Title       string     `xml:"title"`
	Updated     string     `xml:"updated"`
	ID          string     `xml:"id"`
	Category    []Category `xml:"category,omitempty"`
	Content     *feeds.AtomContent
	Rights      string `xml:"rights"`
	Source      string `xml:"source,omitempty"`
	Published   string `xml:"published,omitempty"`
	Contributor *feeds.AtomContributor

	Summary    *Summary           // required if content has src or content is base64
	Authors    []feeds.AtomAuthor // required if feed lacks an author
	Language   []string           `xml:"dcterms:language"`
	Publishers []string           `xml:"dcterms:publisher"`
	Issued     string             `xml:"dcterms:issued"`

	Links []Link `xml:"link"`
}

func (*Entry) Enveloppe

func (e *Entry) Enveloppe() *Entry

type Feed

type Feed struct {
	XMLName      xml.Name `xml:"feed"`
	Xmlns        string   `xml:"xmlns,attr"`
	ThrXmlns     string   `xml:"xmlns:thr,attr"`
	DctermsXmlns string   `xml:"xmlns:dcterms,attr"`
	OpdsXmlns    string   `xml:"xmlns:opds,attr"`
	PseXmlns     string   `xml:"xmlns:pse,attr"`

	Title    string `xml:"title"`   // required
	ID       string `xml:"id"`      // required
	Updated  string `xml:"updated"` // required
	Category string `xml:"category,omitempty"`
	Icon     string `xml:"icon,omitempty"`
	Rights   string `xml:"rights,omitempty"` // copyright used
	Subtitle string `xml:"subtitle,omitempty"`

	Author      *feeds.AtomAuthor `xml:"author,omitempty"`
	Contributor *feeds.AtomContributor

	Links []Link `xml:"link"`
}

func (*Feed) Enveloppe

func (f *Feed) Enveloppe() *Feed
type Link struct {
	XMLName xml.Name `xml:"link"`
	Href    string   `xml:"href,attr"`
	Rel     string   `xml:"rel,attr,omitempty"`
	Type    string   `xml:"type,attr,omitempty"`
	Length  string   `xml:"length,attr,omitempty"`
	Title   string   `xml:"title,attr,omitempty"`

	PSECount        string `xml:"pse:count,attr,omitempty"`
	PSELastRead     string `xml:"pse:lastRead,attr,omitempty"`
	PSELastReadDate string `xml:"pse:lastReadDate,attr,omitempty"`

	OPDSFacetGroup  string `xml:"opds:facetGroup,attr,omitempty"`
	OPDSActiveFacet string `xml:"opds:activeFacet,attr,omitempty"`

	ThrCount string `xml:"thr:count,attr,omitempty"`
}

type Summary

type Summary struct {
	XMLName xml.Name `xml:"summary"`
	Content string   `xml:",chardata"`
	Type    string   `xml:"type,attr,omitempty"`
}

Jump to

Keyboard shortcuts

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