storage

package
v0.0.0-...-0e2fbb9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelState

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

type Storage

type Storage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(dataDir string) (*Storage, error)

rss发布状态的存储桶

func (*Storage) GenerateBloomFileName

func (s *Storage) GenerateBloomFileName(feedURL string, channel string) string

生成布隆过滤器的文件名

func (*Storage) GetBloomFilePath

func (s *Storage) GetBloomFilePath(feedURL string, channel string) string

GetBloomFilePath 获取bloom过滤器的文件路径

func (*Storage) GetLastUpdated

func (s *Storage) GetLastUpdated(feedURL string, channel string) time.Time

func (*Storage) IsItemSeen

func (s *Storage) IsItemSeen(feedURL, feedName, channel, itemID string) bool

检查item是否已经被处理

func (*Storage) MarkItemSeen

func (s *Storage) MarkItemSeen(feedURL, feedName, channel, itemID string) error

标记item为已处理

Jump to

Keyboard shortcuts

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