{"id":16903234,"url":"https://github.com/dpup/gohubbub","last_synced_at":"2025-03-22T10:31:01.866Z","repository":{"id":13757083,"uuid":"16451770","full_name":"dpup/gohubbub","owner":"dpup","description":"A PubSubHubbub subscriber client library for Go","archived":false,"fork":false,"pushed_at":"2014-05-17T23:50:59.000Z","size":230,"stargazers_count":33,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T10:21:25.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-02T09:03:59.000Z","updated_at":"2025-01-19T20:33:50.000Z","dependencies_parsed_at":"2022-08-31T00:10:41.720Z","dependency_job_id":null,"html_url":"https://github.com/dpup/gohubbub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fgohubbub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fgohubbub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fgohubbub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fgohubbub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpup","download_url":"https://codeload.github.com/dpup/gohubbub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244943702,"owners_count":20536283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T18:11:59.962Z","updated_at":"2025-03-22T10:31:01.560Z","avatar_url":"https://github.com/dpup.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"GoHubbub\n========\n\nA [PubSubHubbub](https://pubsubhubbub.googlecode.com/) subscriber client library\nfor Go (golang).\n\nFor API documentation see https://godoc.org/github.com/dpup/gohubbub\n\nExample\n-------\n\ngohubbub can start its own HTTP server:\n\n```go\nimport \"github.com/dpup/gohubbub\"\n\n// ...\n\nclient := gohubbub.NewClient(\"mysite.com\", \"Testing\")\nclient.DiscoverAndSubscribe(topicURL, func(contentType string, body []byte) {\n  // Handle update notification.\n})\nclient.StartAndServe(\"\", 80)\n```\n\nOr if you have your own server, you can register the gohubbub request handler on\nyour own mux and then call `client.Run()` when your server is running:\n\n```go\nimport \"github.com/dpup/gohubbub\"\n\n// ...\n\nclient := gohubbub.NewClient(\"mysite.com\", \"Testing\")\nclient.DiscoverAndSubscribe(topicURL, func(contentType string, body []byte) {\n  // Handle update notification.\n})\nclient.RegisterHandler(myMux)\n\n// ...\n\nclient.Start()\n\n```\n\nSee this simple [program](./example/example.go) for a fully functioning example.\nYou will need to run it from a machine that is publicly accessible or use\n[reverse port forwarding](https://medium.com/dev-tricks/220030f3c84a) from one\nthat is.\n\n\nContributing\n------------\nQuestions, comments, bug reports, and pull requests are all welcome.  Submit\nthem [on the project issue tracker](https://github.com/dpup/gohubbub/issues/new).\n\nLicense\n-------\nCopyright 2014 [Daniel Pupius](http://pupius.co.uk). Licensed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpup%2Fgohubbub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpup%2Fgohubbub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpup%2Fgohubbub/lists"}