Documentation
¶
Index ¶
- type CacheInfoItem
- type Config
- type ListItem
- type LocalStorage
- func (s *LocalStorage) AddToList(urls []string, list string) error
- func (s *LocalStorage) ClearAll() error
- func (s *LocalStorage) GetFeedsFromList(list string) ([]*ListItem, error)
- func (s *LocalStorage) Init(version string) error
- func (s *LocalStorage) JoinCacheDir(file string) (string, error)
- func (s *LocalStorage) JoinConfigDir(file string) (string, error)
- func (s *LocalStorage) LoadCacheInfo() (map[string]*CacheInfoItem, error)
- func (s *LocalStorage) LoadConfig() (*Config, error)
- func (s *LocalStorage) LoadFeedsFromList(m map[string]*ListItem, list string) error
- func (s *LocalStorage) LoadLists() ([]string, error)
- func (s *LocalStorage) MergeLists(list, otherList string) error
- func (s *LocalStorage) Migrate() error
- func (s *LocalStorage) OpenFeedCache(name string) (io.ReadCloser, error)
- func (s *LocalStorage) RemoveFeedCaches(names []string) error
- func (s *LocalStorage) RemoveFromList(urls []string, list string) ([]bool, error)
- func (s *LocalStorage) RemoveList(list string) error
- func (s *LocalStorage) RenameList(oldName, newName string) error
- func (s *LocalStorage) SaveCacheInfo(cacheinfo map[string]*CacheInfoItem) error
- func (s *LocalStorage) SaveConfig() error
- func (s *LocalStorage) SaveFeedCache(r io.Reader, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheInfoItem ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func NewLocalStorage ¶
func NewLocalStorage( name string, time utils.Time, ) *LocalStorage
func (*LocalStorage) ClearAll ¶
func (s *LocalStorage) ClearAll() error
func (*LocalStorage) GetFeedsFromList ¶ added in v0.1.1
func (s *LocalStorage) GetFeedsFromList(list string) ([]*ListItem, error)
func (*LocalStorage) Init ¶
func (s *LocalStorage) Init(version string) error
func (*LocalStorage) JoinCacheDir ¶ added in v0.2.1
func (s *LocalStorage) JoinCacheDir(file string) (string, error)
func (*LocalStorage) JoinConfigDir ¶ added in v0.2.1
func (s *LocalStorage) JoinConfigDir(file string) (string, error)
func (*LocalStorage) LoadCacheInfo ¶
func (s *LocalStorage) LoadCacheInfo() (map[string]*CacheInfoItem, error)
func (*LocalStorage) LoadConfig ¶
func (s *LocalStorage) LoadConfig() (*Config, error)
func (*LocalStorage) LoadFeedsFromList ¶ added in v0.1.1
func (s *LocalStorage) LoadFeedsFromList(m map[string]*ListItem, list string) error
func (*LocalStorage) LoadLists ¶
func (s *LocalStorage) LoadLists() ([]string, error)
func (*LocalStorage) MergeLists ¶ added in v0.1.8
func (s *LocalStorage) MergeLists(list, otherList string) error
func (*LocalStorage) Migrate ¶
func (s *LocalStorage) Migrate() error
func (*LocalStorage) OpenFeedCache ¶
func (s *LocalStorage) OpenFeedCache(name string) (io.ReadCloser, error)
func (*LocalStorage) RemoveFeedCaches ¶ added in v0.1.1
func (s *LocalStorage) RemoveFeedCaches(names []string) error
func (*LocalStorage) RemoveFromList ¶
func (s *LocalStorage) RemoveFromList(urls []string, list string) ([]bool, error)
func (*LocalStorage) RemoveList ¶ added in v0.1.8
func (s *LocalStorage) RemoveList(list string) error
func (*LocalStorage) RenameList ¶ added in v0.1.8
func (s *LocalStorage) RenameList(oldName, newName string) error
func (*LocalStorage) SaveCacheInfo ¶
func (s *LocalStorage) SaveCacheInfo(cacheinfo map[string]*CacheInfoItem) error
func (*LocalStorage) SaveConfig ¶
func (s *LocalStorage) SaveConfig() error
func (*LocalStorage) SaveFeedCache ¶
func (s *LocalStorage) SaveFeedCache(r io.Reader, name string) error
Click to show internal directories.
Click to hide internal directories.