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 ¶
Types ¶
type FeedV1 ¶
type FeedV1 struct { Feed string `bare:"feed"` Title string `bare:"title"` Description string `bare:"description"` Link string `bare:"link"` Updated *Timestamp `bare:"updated"` Items []ItemV1 `bare:"items"` }
FeedV1 type contains elements from RSS Channel & Atom Feed
type ItemV1 ¶
type ItemV1 struct { Link string `bare:"link"` Title string `bare:"title"` Content string `bare:"content"` Read bool `bare:"read"` Favorite bool `bare:"favorite"` Date Timestamp `bare:"date"` Media *MediaV1 `bare:"media"` }
ItemV1 type contains elements from RSS Item & Atom Entry
type MediaV1 ¶
type MediaV1 struct { Location string `bare:"location"` Mimetype string `bare:"mimetype"` Length int64 `bare:"length"` Position int64 `bare:"position"` }
MediaV1 contains info needed for a podcast
type Message ¶
type Message interface { bare.Union }
Message it the root type of a barefeed. It allows for future versions of the spec and allowing backward compatability
type MessageV1 ¶
type MessageV1 struct { Created Timestamp `bare:"created"` Generator string `bare:"generator"` Feeds []FeedV1 `bare:"feeds"` }
MessageV1 is the first version of the spec
Click to show internal directories.
Click to hide internal directories.