move collection and extraction of articles into their own file; add custom response cache
This commit is contained in:
11
internal/model/response.go
Normal file
11
internal/model/response.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// A simple cache for requests.
|
||||
type Response struct {
|
||||
Url string
|
||||
Content string
|
||||
Processed bool
|
||||
FetchDate time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user