mirror of
https://github.com/nkanaev/yarr.git
synced 2026-06-09 18:03:19 +00:00
feed state skeleton
This commit is contained in:
31
src/storage/feedstate.go
Normal file
31
src/storage/feedstate.go
Normal 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
|
||||||
|
}
|
||||||
0
src/storage/feedstate_test.go
Normal file
0
src/storage/feedstate_test.go
Normal file
Reference in New Issue
Block a user