aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-25 17:50:12 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-25 17:51:42 +0200
commit60ff245e6d965785d54a212b2a4ddd9b16159460 (patch)
treef07bf776739213447f616901e1803fdd65845da5 /internal/feed/cache.go
parent8c134b0ece0da2d774e2bad4df35803d3c30f500 (diff)
downloadfeed2imap-go-60ff245e6d965785d54a212b2a4ddd9b16159460.tar.gz
feed2imap-go-60ff245e6d965785d54a212b2a4ddd9b16159460.tar.bz2
feed2imap-go-60ff245e6d965785d54a212b2a4ddd9b16159460.zip
Remove undue feeds
Diffstat (limited to 'internal/feed/cache.go')
-rw-r--r--internal/feed/cache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/feed/cache.go b/internal/feed/cache.go
index 4a0bfe7..735a7d6 100644
--- a/internal/feed/cache.go
+++ b/internal/feed/cache.go
@@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"os"
+ "time"
"github.com/Necoro/feed2imap-go/pkg/log"
)
@@ -25,6 +26,7 @@ type Cache interface {
type CachedFeed interface {
Checked(withFailure bool)
Failures() uint
+ Last() time.Time
}
func cacheForVersion(version Version) (Cache, error) {