feed

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Unlicense Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteInvalidFeed

func DeleteInvalidFeed(url string, db *sql.DB)

func EntryFeedToSetMetadata added in v0.3.6

func EntryFeedToSetMetadata(pubkey string, feed *gofeed.Feed, originalUrl string, enableAutoRegistration bool, defaultProfilePictureUrl string, mainDomainName string) nostr.Event

func GetFeedURL

func GetFeedURL(url string) string

func ItemToTextNote

func ItemToTextNote(pubkey string, item *gofeed.Item, feed *gofeed.Feed, defaultCreatedAt time.Time, originalUrl string, maxContentLength int) nostr.Event

func ParseFeed

func ParseFeed(url string) (*gofeed.Feed, error)

func PrivateKeyFromFeed

func PrivateKeyFromFeed(url string, secret string) string

Types

type CustomTranslator added in v0.4.3

type CustomTranslator struct {
	// contains filtered or unexported fields
}

func NewCustomTranslator added in v0.4.3

func NewCustomTranslator() *CustomTranslator

func (*CustomTranslator) Translate added in v0.4.3

func (ct *CustomTranslator) Translate(feed interface{}) (*gofeed.Feed, error)

type Entity

type Entity struct {
	PublicKey  string
	PrivateKey string
	URL        string
	Nitter     bool
}

Jump to

Keyboard shortcuts

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