initial attempt to integrate surf http client

This commit is contained in:
2026-01-24 14:59:48 -06:00
parent 2f1019d170
commit 538d52d064
45 changed files with 196 additions and 109 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()) {