eml2miniflux

package
v1.0.0-2.0.43 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntryForEML

func CreateEntryForEML(message *eml.Message, store *storage.Storage, feedHelper *FeedHelper, user *model.User, defaultFeed *model.Feed) (*model.Entry, error)

func GetEntriesForEML

func GetEntriesForEML(store *storage.Storage, feedHelper *FeedHelper, messagesPath string, user *model.User, defaultFeed *model.Feed, quiet bool) (model.Entries, error)

Load EML from the specified messagesPath and create model Entry - if messagesPath is a directory: traverse recursively and load all *.eml files - otherwise load a single file

Types

type DatabaseProcessor

type DatabaseProcessor struct {
	Db        *sql.DB
	Store     *storage.Storage
	BatchSize int
	Retries   int
}

func (*DatabaseProcessor) RemoveStorageEntries

func (p *DatabaseProcessor) RemoveStorageEntries(allEntries model.Entries) error

func (*DatabaseProcessor) UpdateStorageEntries

func (p *DatabaseProcessor) UpdateStorageEntries(allEntries model.Entries, overwrite bool) error

type FeedHelper

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

func CreateFeedHelper

func CreateFeedHelper(store *storage.Storage, user *model.User) (*FeedHelper, error)

func (*FeedHelper) FeedByID

func (h *FeedHelper) FeedByID(feedId int64) *model.Feed

func (*FeedHelper) FeedByURL

func (h *FeedHelper) FeedByURL(feedUrl string) *model.Feed

func (*FeedHelper) FeedForEntryUrl

func (h *FeedHelper) FeedForEntryUrl(entryUrl string) (*model.Feed, error)

func (*FeedHelper) LoadMap

func (h *FeedHelper) LoadMap(fileName string) error

type FeedIgnoreError

type FeedIgnoreError struct{}

func (*FeedIgnoreError) Error

func (e *FeedIgnoreError) Error() string

type FeedNoMatchError

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

func (*FeedNoMatchError) Error

func (e *FeedNoMatchError) Error() string

Jump to

Keyboard shortcuts

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