Documentation ¶
Overview ¶
Package convert contains Emissary-specific conversions to and from various export formats. TODO: LOW: These should probably be folded in to their respective adapters.
Index ¶
- func ActivityPubAttributedTo(document streams.Document) model.PersonLink
- func AnyToMicroformat(value any) *microformats.Microformat
- func IteratorToJSonFeed(url string, title string, description string, it data.Iterator) jsonfeed.Feed
- func JsonFeedToActivity(feed jsonfeed.Feed, item jsonfeed.Item) model.Message
- func JsonFeedToAuthor(feed jsonfeed.Feed, item jsonfeed.Item) model.PersonLink
- func JsonFeedToContentHTML(item jsonfeed.Item) string
- func MicroformatPropertyToString(entry *microformats.Microformat, names ...string) string
- func MicroformatToAuthor(entry *microformats.Microformat) model.PersonLink
- func MicroformatToMessage(feed *microformats.Microformat, entry *microformats.Microformat) model.Message
- func RSSToActivity(feed *gofeed.Feed, rssItem *gofeed.Item) mapof.Any
- func SanitizeHTML(value string) string
- func SanitizeText(value string) string
- func StreamToGorillaFeed(stream model.Stream) *feeds.Item
- func StreamToJsonFeed(stream model.Stream) jsonfeed.Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivityPubAttributedTo ¶ added in v0.6.0
func ActivityPubAttributedTo(document streams.Document) model.PersonLink
ActivityPubAttributedTo generates a model.PersonLink for the first valid record in AttributedTo
func AnyToMicroformat ¶
func AnyToMicroformat(value any) *microformats.Microformat
func IteratorToJSonFeed ¶
func JsonFeedToActivity ¶
func JsonFeedToAuthor ¶
func JsonFeedToContentHTML ¶
func MicroformatPropertyToString ¶
func MicroformatPropertyToString(entry *microformats.Microformat, names ...string) string
func MicroformatToAuthor ¶
func MicroformatToAuthor(entry *microformats.Microformat) model.PersonLink
func MicroformatToMessage ¶
func MicroformatToMessage(feed *microformats.Microformat, entry *microformats.Microformat) model.Message
func RSSToActivity ¶
RSSToActivity populates an Activity object from a gofeed.Feed and gofeed.Item
func SanitizeHTML ¶
func SanitizeText ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.