{"id":21296941,"url":"https://github.com/reddec/gbus","last_synced_at":"2025-03-15T17:27:43.376Z","repository":{"id":81702509,"uuid":"97549814","full_name":"reddec/gbus","owner":"reddec","description":"Simpe event bus code generator on Golang","archived":false,"fork":false,"pushed_at":"2018-10-25T13:35:41.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-09T00:06:39.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reddec.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-18T03:46:40.000Z","updated_at":"2018-10-26T21:31:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"84be6af9-3512-4550-a690-4f13d8c6d993","html_url":"https://github.com/reddec/gbus","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/reddec%2Fgbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fgbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fgbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fgbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddec","download_url":"https://codeload.github.com/reddec/gbus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243765038,"owners_count":20344525,"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-11-21T14:31:12.179Z","updated_at":"2025-03-15T17:27:43.339Z","avatar_url":"https://github.com/reddec.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GBUS - golang event bus generator\n\nGenerates an event emitter based on specified interface.\n\nAll functions without return value in the interface will be interpreted as event. For example (sample.go):\n\n```go\n\ntype Rocket interface {\n    Launched()\n    LaunchFailed(reason error)\n    Landed(lat, lon float64)\n}\n\n// go:generate Rocket sample.go\n\n```\n\n\nwill produce file sample_eventbus.go with subscribe interface (RocketEvents) and implementation of event emitter (RocketEventEmitter).\n\nUsually used as\n\n```go\n\ntype Something struct {\n    //...\n    events  RocketEventEmitter\n}\n\n//...\n\nfunc (s *Something) Events() RocketEvents { return \u0026s.events }\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fgbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddec%2Fgbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fgbus/lists"}