Documentation ¶
Index ¶
Constants ¶
View Source
const ( LinkTypeAcquisition = "application/atom+xml;profile=opds-catalog;kind=acquisition" LinkTypeEntry = "application/atom+xml;type=entry;profile=opds-catalog" LinkTypeOpenSearch = "application/opensearchdescription+xml" )
View Source
const ( LinkRelSelf = "self" LinkRelStart = "start" LinkRelFirst = "first" LinkRelLast = "last" LinkRelNext = "next" LinkRelPrev = "previous" LinkRelSearch = "search" LinkRelRelated = "related" LinkRelAcquisition = "http://opds-spec.org/acquisition" LinkRelImage = "http://opds-spec.org/image" LinkRelThumbnail = "http://opds-spec.org/image/thumbnail" )
View Source
const (
ContentType = "application/atom+xml;charset=utf-8"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { ID string `xml:"id"` Title string `xml:"title"` Link []Link `xml:"link"` Published *time.Time `xml:"published"` Updated *time.Time `xml:"updated"` Summary *Text `xml:"summary"` Content *Text `xml:"content"` Category []Category `xml:"category"` Author []Author `xml:"author"` Issued *time.Time `xml:"dc:issued"` Language string `xml:"dc:language,omitempty"` Publisher string `xml:"dc:publisher,omitempty"` Identifier string `xml:"dc:identifier,omitempty"` }
type Feed ¶
type Feed struct { XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"` NamespaceDc string `xml:"xmlns:dc,attr"` NamespaceOs string `xml:"xmlns:os,attr"` NamespaceOpds string `xml:"xmlns:opds,attr"` ID string `xml:"id"` Title string `xml:"title"` Icon string `xml:"icon,omitempty"` Link []Link `xml:"link"` Updated *time.Time `xml:"updated,omitempty"` Author *Author `xml:"author,omitempty"` Entry []*Entry `xml:"entry"` TotalResults uint64 `xml:"os:totalResults,omitempty"` ItemsPerPage int `xml:"os:itemsPerPage,omitempty"` }
type OpenSearchDescription ¶
type OpenSearchDescription struct { XMLName xml.Name `xml:"http://a9.com/-/spec/opensearch/1.1/ OpenSearchDescription"` ShortName string `xml:"ShortName,omitempty"` Language string `xml:"Language,omitempty"` InputEncoding string `xml:"InputEncoding,omitempty"` OutputEncoding string `xml:"OutputEncoding,omitempty"` Url SearchUrl `xml:"Url,omitempty"` }
func NewOpenSearchDescription ¶
func NewOpenSearchDescription(name string, url string) *OpenSearchDescription
Click to show internal directories.
Click to hide internal directories.