Documentation ¶
Overview ¶
Package barefeed is an implementation of the barefeed message format for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entries ¶ added in v0.2.0
type Entries []Entry
Entries are a slice of Entry
type Entry ¶ added in v0.2.0
type Entry interface { bare.Union }
Entry type contains elements from RSS Item & Atom Entry
type EntryV1 ¶ added in v0.2.0
type EntryV1 struct { FeedPath string `bare:"feedPath"` ID string `bare:"id"` Title Text `bare:"title"` Content Text `bare:"content"` Published Timestamp `bare:"published"` Updated Timestamp `bare:"updated"` Authors Persons `bare:"authors"` Links Links `bare:"links"` }
EntryV1 type contains elements from RSS Item & Atom Entry
type Feed ¶ added in v0.2.0
type Feed interface { bare.Union }
Feed type contains elements from RSS Channel & Atom Feed
type FeedType ¶ added in v0.3.0
type FeedType uint
FeedType is an enumerated type for Feed
func ToFeedType ¶ added in v0.3.0
ToFeedType converts a string to the enumerated value. RSS is default.
type FeedV1 ¶
type FeedV1 struct { Path string `bare:"path"` ID string `bare:"id"` FeedType FeedType `bare:"feedType"` Title Text `bare:"title"` Updated Timestamp `bare:"updated"` Authors Persons `bare:"authors"` Links Links `bare:"links"` Entries []string `bare:"entries"` Generator *string `bare:"generator"` Description *Text `bare:"description"` }
FeedV1 type contains elements from RSS Channel & Atom Feed
type Feeds ¶ added in v0.2.0
type Feeds []Feed
Feeds are a slice of Feed
type Link ¶ added in v0.2.0
type Link struct { URL string `bare:"url"` LinkType string `bare:"linkType"` Rel string `bare:"rel"` Length int `bare:"length"` }
Link contains info needed for any link
type Message ¶
type Message struct { Generator string `bare:"generator"` Created Timestamp `bare:"created"` Feeds map[string]Feed `bare:"feeds"` Entries map[string]Entry `bare:"entries"` Unread map[string]int64 `bare:"unread"` Favorite map[string]Timestamp `bare:"favorite"` }
Message is the first version of the spec
func FromReader ¶
FromReader will read barefeed from a Reader
type Person ¶ added in v0.2.0
type Person struct { Name string `bare:"name"` Email *string `bare:"email"` URI *string `bare:"uri"` }
Person contains info needed for authors
type TextType ¶ added in v0.3.0
type TextType uint
TextType is an enumerated type for Text
func ToTextType ¶ added in v0.3.0
ToTextType converts a string to the enumerated value. TEXT is default.