Documentation ¶
Index ¶
- func CreateEntryForEML(message *eml.Message, store *storage.Storage, feedHelper *FeedHelper, ...) (*model.Entry, error)
- func GetEntriesForEML(store *storage.Storage, feedHelper *FeedHelper, messagesPath string, ...) (model.Entries, error)
- type DatabaseProcessor
- type FeedHelper
- type FeedIgnoreError
- type FeedNoMatchError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEntryForEML ¶
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 ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.