Commit Graph

19 Commits

Author SHA1 Message Date
nytpu 76f25b7708 Fix bug in co refresh where contexts would be immediately cancelled 2021-03-23 08:53:06 -06:00
nytpu c6b0eedebe Use refresh timeout for http 2021-03-23 08:15:36 -06:00
nytpu 54e883a1d1 Use timeout for Gemini requests 2021-03-23 08:15:36 -06:00
nytpu db626e0c66 fix breaking dereference error in gopher fetch funcs 2021-03-18 17:02:26 -06:00
nytpu ee43bf1084 implement atom/rss/json feeds over gopher.
TODO: write gophermap->gemtext mapper so the same gemini feed parser can
be used on both.
2021-03-18 15:08:24 -06:00
nytpu 8dfb63e640 change http error messages to be consistent with others 2021-03-18 15:03:25 -06:00
nytpu 326edc97c5 add RefreshAll with workers 2021-03-18 13:43:22 -06:00
nytpu f8601b82ab Use strings for URLs internally for consistency. 2021-03-18 13:02:17 -06:00
nytpu 7d0600f5f0 improve gemini feed parsing by stripping off more characters from title 2021-03-18 11:37:32 -06:00
nytpu 6cf5ca01cf Changed url.URL to string so the json is less bloated 2021-03-18 11:36:57 -06:00
nytpu a3a427b9ee Refactor fetch functions to use new FullData.Insert{Feed,Page} funcs 2021-03-18 10:33:58 -06:00
nytpu 5ba676ed5d refactor fetch functions to insert into FullData 2021-03-18 10:19:07 -06:00
nytpu 9a22dd1b64 fix bug in newHTTPFeed 2021-03-17 09:04:05 -06:00
nytpu 6341c67574 add (stubbed) updateGopherFeed function 2021-03-17 09:04:05 -06:00
nytpu 795979e3bb add updateGopherPage function 2021-03-17 09:04:05 -06:00
nytpu e68ff691b8 add updateHTTPPage function 2021-03-17 09:02:02 -06:00
nytpu f9428c3e0e add updateGeminiPage and refactor newGeminiPage to use updateGeminiPage. 2021-03-17 09:02:02 -06:00
nytpu 09c1c4caab add general Update* in fetch.go
TODO: implement backend protocol functions
2021-03-17 08:48:16 -06:00
nytpu 07d85c0bfc implement New* routines for fetching and creating new feeds/pages.
Also includes routines for fetching gemini, http, and gopher resources.

TODO: add Update* routines to update existing feeds/pages.
2021-03-16 22:43:18 -06:00