From 54e197ad85f89044343d354ef2498c4200ba5ee0 Mon Sep 17 00:00:00 2001 From: nkanaev Date: Fri, 15 May 2026 15:10:25 +0100 Subject: [PATCH] feed state skeleton --- src/storage/feedstate.go | 31 +++++++++++++++++++++++++++++++ src/storage/feedstate_test.go | 0 2 files changed, 31 insertions(+) create mode 100644 src/storage/feedstate.go create mode 100644 src/storage/feedstate_test.go diff --git a/src/storage/feedstate.go b/src/storage/feedstate.go new file mode 100644 index 0000000..e887373 --- /dev/null +++ b/src/storage/feedstate.go @@ -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 +} diff --git a/src/storage/feedstate_test.go b/src/storage/feedstate_test.go new file mode 100644 index 0000000..e69de29