A PubSubHubbub subscriber client library for Go (golang).
import "github.com/dpup/gohubbub"
// ...
client := gohubbub.NewClient(hubURL, hostname, port, "Testing")
client.Subscribe(topicURL, func(contentType string, body []byte) {
// Handle update notification.
})
See this simple program for a functioning example. You will need to run it from a machine that is publicly accessible or use reverse port forwarding from one that is.
Questions, comments, bug reports, and pull requests are all welcome. Submit them on the project issue tracker.
Copyright 2014 Daniel Pupius. Licensed under the Apache License, Version 2.0.