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