package barefeed
import "git.sr.ht/~chrisppy/go-barefeed"
Package barefeed is an implementation of the barefeed message format for Go.
https://git.sr.ht/~chrisppy/go-barefeed
Index ¶
- type Bin
- func (t *Bin) Decode(data []byte) error
- func (t *Bin) Encode() ([]byte, error)
- func (d Bin) Write(writer io.Writer) error
- type Content
- type Entry
- func (t *Entry) Decode(data []byte) error
- func (t *Entry) Encode() ([]byte, error)
- func (_ Entry) IsUnion()
- type Feed
- func (t *Feed) Decode(data []byte) error
- func (t *Feed) Encode() ([]byte, error)
- func (_ Feed) IsUnion()
- type FeedMap
- type Link
- type Linked
- type Person
- type Text
- type Time
Types ¶
type Bin ¶
func (*Bin) Decode ¶
func (*Bin) Encode ¶
func (Bin) Write ¶
Write will output the Bin to the provided io writer
type Content ¶
type Content interface { bare.Union }
type Entry ¶
type Entry struct { FeedID string `bare:"feedID"` EntryID string `bare:"entryID"` Read bool `bare:"read"` Liked bool `bare:"liked"` Position uint `bare:"position"` Title Text `bare:"title"` Content Text `bare:"content"` Updated Time `bare:"updated"` Published *Time `bare:"published"` Authors []Person `bare:"authors"` Links []Link `bare:"links"` }
func (*Entry) Decode ¶
func (*Entry) Encode ¶
func (Entry) IsUnion ¶
func (_ Entry) IsUnion()
type Feed ¶
type Feed struct { FeedPath string `bare:"feedPath"` FeedID string `bare:"feedID"` Title Text `bare:"title"` Updated Time `bare:"updated"` Authors []Person `bare:"authors"` Links []Link `bare:"links"` }
func (*Feed) Decode ¶
func (*Feed) Encode ¶
func (Feed) IsUnion ¶
func (_ Feed) IsUnion()
type FeedMap ¶
FeedMap map of Linked
func (FeedMap) Read ¶
Read will open the provided reader and load it into the FeedEntry
type Link ¶
type Link struct { Href string `bare:"href"` Rel *string `bare:"rel"` LinkType *string `bare:"linkType"` Lang *string `bare:"lang"` Title *string `bare:"title"` Length *string `bare:"length"` }
func (*Link) Decode ¶
func (*Link) Encode ¶
type Linked ¶
Linked containing the linkage between a Feed and Entry
type Person ¶
type Person struct { Name string `bare:"name"` Email *string `bare:"email"` Uri *string `bare:"uri"` }
func (*Person) Decode ¶
func (*Person) Encode ¶
type Text ¶
func (*Text) Decode ¶
func (*Text) Encode ¶
type Time ¶
type Time string
func (*Time) Decode ¶
func (*Time) Encode ¶
Source Files ¶
- Version
- v0.6.0 (latest)
- Published
- Oct 16, 2021
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 weeks ago –
Tools for package owners.