{"id":21061676,"url":"https://github.com/nepet/eventbus","last_synced_at":"2025-12-30T16:41:19.400Z","repository":{"id":57546728,"uuid":"300933241","full_name":"nepet/eventbus","owner":"nepet","description":"A simplistic event bus for golang","archived":false,"fork":false,"pushed_at":"2020-10-03T17:58:27.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-20T20:21:05.629Z","etag":null,"topics":["event","eventbus","golang","pubsub"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nepet.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":"2020-10-03T17:05:58.000Z","updated_at":"2020-10-04T03:49:49.000Z","dependencies_parsed_at":"2022-09-05T12:31:44.277Z","dependency_job_id":null,"html_url":"https://github.com/nepet/eventbus","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/nepet%2Feventbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nepet%2Feventbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nepet%2Feventbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nepet%2Feventbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nepet","download_url":"https://codeload.github.com/nepet/eventbus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243505959,"owners_count":20301618,"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":["event","eventbus","golang","pubsub"],"created_at":"2024-11-19T17:26:31.337Z","updated_at":"2025-12-30T16:41:19.361Z","avatar_url":"https://github.com/nepet.png","language":"Go","readme":"# Eventbus\n[![Test Coverage](https://codecov.io/gh/nepet/eventbus/master/graph/badge.svg)](https://codecov.io/gh/nepet/eventbus)\n#### A simple Implementation of an event bus in golang\n\nThis repository is an implementation of the publisher/subscriber pattern in golang. It is meant to be as simple as\npossible to cover as many cases as possible.\n\n## Install\n\n```\ngo get github.com/nepet/eventbus\n```\n\n\n### Event\n\n```\ntype Event interface {\n\tIsEvent()\n}\n```\n\nAn event is something that gets published. The interface only requires for a `IsEvent()` method that should do nothing\nand just ensures that a struct is meant to be an event. Any struct can implement this method to be used as an event.\n\n### Handler\n\n```\ntype Handler interface {\n\tHandle(interface{Event})\n}\n```\n\nA handler handles an event without a return value. It is up to the developer how the\n`Handle(interface{Event})` method is used.\n\n### Mock\n\nThe repository also contains a handler mock and a mock for the event bus. This allows you to easily use the bus in unit\ntests.\n\n### Examples\n\nThe examples provide an exemplary implementation of a handler and an event.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnepet%2Feventbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnepet%2Feventbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnepet%2Feventbus/lists"}