feed state skeleton

This commit is contained in:
nkanaev
2026-05-15 15:10:25 +01:00
parent f50894ddb0
commit 54e197ad85
2 changed files with 31 additions and 0 deletions

31
src/storage/feedstate.go Normal file
View File

@@ -0,0 +1,31 @@
package storage
import "time"
type FeedState struct {
LastRefreshed time.Time
LastError string
HTTPLastModified string
HTTPEtag string
}
func (s *Storage) ListFeedStates() ([]FeedState, error) {
// TODO: implement
}
func (s *Storage) GetFeedState() (FeedState, error) {
// TODO: implement
}
type UpdateFeedStateParams struct {
LastRefreshed *time.Time
LastError *string
HTTPLastModified *string
HTTPEtag *string
}
func (s *Storage) UpdateFeedState(params UpdateFeedStateParams) (bool, error) {
// TODO: implement
}

View File