Added surf http client

- updated Makefile
- updated dependencies
This commit is contained in:
2026-01-24 15:16:51 -06:00
parent 8c85da5472
commit 519f3f4f00
5 changed files with 97 additions and 24 deletions
+1
View File
@@ -16,6 +16,7 @@ type StreamService struct {
// - a channel into which new posts will be sent
// - a channel into which any errors will be sent
// - a function that the client can call once to stop the streaming and close the channels
//
// Because of the 100 post limit imposed by Reddit when fetching posts, some high-traffic
// streams might drop submissions between API requests, such as when streaming r/all.
func (s *StreamService) Posts(subreddit string, opts ...StreamOpt) (<-chan *Post, <-chan error, func()) {