feat(ntfy): add the HTTP client, stream manager, and account discovery

Speak the ntfy JSON API directly: subscribe, publish, group topics that share a server and credentials, reconnect with backoff and a since cursor, and list account subscriptions, reservations, and ACL grants.
This commit is contained in:
ahp
2026-10-11 12:04:53 +03:30
parent 387b3c77f3
commit cd19d4c665
11 changed files with 1034 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package ntfy
import (
"bufio"
"io"
)
func newScanner(r io.Reader) *bufio.Scanner {
sc := bufio.NewScanner(r)
buf := make([]byte, 64*1024)
sc.Buffer(buf, 10*1024*1024)
return sc
}