{"id":41051311,"url":"https://github.com/vectorhacker/mediator","last_synced_at":"2026-01-22T11:27:44.578Z","repository":{"id":57647443,"uuid":"443203547","full_name":"vectorhacker/mediator","owner":"vectorhacker","description":"Simple mediator implementation for Go","archived":false,"fork":false,"pushed_at":"2021-12-31T15:39:55.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T13:41:01.964Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vectorhacker.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-12-30T23:07:11.000Z","updated_at":"2021-12-31T15:39:48.000Z","dependencies_parsed_at":"2022-09-14T21:20:21.625Z","dependency_job_id":null,"html_url":"https://github.com/vectorhacker/mediator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vectorhacker/mediator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorhacker%2Fmediator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorhacker%2Fmediator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorhacker%2Fmediator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorhacker%2Fmediator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vectorhacker","download_url":"https://codeload.github.com/vectorhacker/mediator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorhacker%2Fmediator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28662058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":[],"created_at":"2026-01-22T11:27:44.499Z","updated_at":"2026-01-22T11:27:44.564Z","avatar_url":"https://github.com/vectorhacker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mediator\n\nSimple mediator implementation for Go\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/vectorhacker/mediator)](https://goreportcard.com/report/github.com/vectorhacker/mediator)\n![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen)\n[![Go](https://github.com/vectorhacker/mediator/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/vectorhacker/mediator/actions/workflows/go.yml)\n\nExample \n\n```go\n\ntype MessageHandler struct{}\n\ntype Message struct {\n    Foo string\n}\n\ntype Response struct {\n    Result string\n}\n\nfunc (h MessageHandler) Handle(ctx context.Context, msg *Message) (Response, error) {\n    return Response{ msg.Foo + \" bar \"}, nil\n}\n\n\nm, err := mediator.New(mediator.WithHandler(\u0026MessageHandler{})) \n\nr, err := m.Send(context.Background(), \u0026Message{ \"foo\" })\n// ...\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorhacker%2Fmediator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectorhacker%2Fmediator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorhacker%2Fmediator/lists"}