{"id":31939003,"url":"https://github.com/tsouza/go-bus","last_synced_at":"2025-10-14T08:20:29.628Z","repository":{"id":57637799,"uuid":"429861965","full_name":"tsouza/go-bus","owner":"tsouza","description":"A lightweight in-memory message bus Go library","archived":false,"fork":false,"pushed_at":"2022-01-03T12:14:07.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T17:40:03.255Z","etag":null,"topics":["event","eventbus","go","golang","messaging","pubsub"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsouza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-19T16:20:34.000Z","updated_at":"2022-01-03T12:14:11.000Z","dependencies_parsed_at":"2022-09-05T07:40:37.926Z","dependency_job_id":null,"html_url":"https://github.com/tsouza/go-bus","commit_stats":null,"previous_names":["qryio/go-bus"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/tsouza/go-bus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fgo-bus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fgo-bus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fgo-bus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fgo-bus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsouza","download_url":"https://codeload.github.com/tsouza/go-bus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fgo-bus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018268,"owners_count":26086334,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["event","eventbus","go","golang","messaging","pubsub"],"created_at":"2025-10-14T08:20:06.310Z","updated_at":"2025-10-14T08:20:29.624Z","avatar_url":"https://github.com/tsouza.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-bus [![GoDoc](https://godoc.org/github.com/tsouza/go-bus?status.svg)](https://godoc.org/github.com/tsouza/go-bus) [![Test](https://github.com/tsouza/go-bus/actions/workflows/test.yml/badge.svg)](https://github.com/tsouza/go-bus/actions/workflows/test.yml)\n\n`go-bus` is a lightweight golang library for implementing the [pub/sub pattern](https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern). It supports wildcard topics as well as dynamic topic subscription.\n\n## Usage\n\nBasic pub/sub usage:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/tsouza/go-bus\"\n)\n\nfunc main() {\n\tb := bus.New()\n\tsub := b.Subscribe([]string{\"my\", \"topic\"}, func(t []string, s *bus.Subscription, p interface{}) {\n\t\tfmt.Printf(\"%v world\", p)\n\t})\n\tb.Publish([]string{\"my\", \"topic\"}, \"hello\")\n\tsub.Terminate()\n}\n```\n\nCheck out more [examples](examples)\n\n## License\n\nCode and documentation released under [Apache License 2.0](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsouza%2Fgo-bus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsouza%2Fgo-bus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsouza%2Fgo-bus/lists"}