sdl

package
v0.0.0-...-d1b8e3a Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceTypeDefault = SourceType("")
	SourceTypeAtom    = SourceType("atom")
	SourceTypeRSS     = SourceType("rss")
)
View Source
const DefaultNamespace = "sdl"

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	common.XmlAttrs
	XMLName xml.Name `xml:"sdl collection"`
	Title   string   `xml:"sdl title"`
	Author  string   `xml:"sdl author,omitempty"`
	Feeds   []*Feed  `xml:"sdl feed,omitempty"`
}

func (*Collection) String

func (c *Collection) String() string

type Feed

type Feed struct {
	common.XmlAttrs
	XMLName   xml.Name  `xml:"sdl feed"`
	Name      string    `xml:"name,attr,omitempty"`
	ShortName string    `xml:"short,attr,omitempty"`
	Sources   []*Source `xml:"sdl source,omitempty"`
}

func (*Feed) Source

func (f *Feed) Source(typ SourceType, lang string) *Source

func (*Feed) String

func (f *Feed) String() string

type Source

type Source struct {
	common.XmlAttrs
	XMLName     xml.Name   `xml:"sdl source"`
	Type        SourceType `xml:"type,attr"`
	Language    string     `xml:"lang,attr,omitempty"`
	Href        string     `xml:"href,attr"`
	HTTPMethod  string     `xml:"sdl method,omitempty"`
	TimeFormats []string   `xml:"sdl time_format,omitempty"`
}

func (*Source) String

func (s *Source) String() string

type SourceType

type SourceType string

Jump to

Keyboard shortcuts

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