{"id":37214118,"url":"https://github.com/deliveroo/routemaster-client-go","last_synced_at":"2026-01-15T00:45:48.555Z","repository":{"id":57480708,"uuid":"100627107","full_name":"deliveroo/routemaster-client-go","owner":"deliveroo","description":"Routemaster Client written in Go","archived":true,"fork":false,"pushed_at":"2023-05-12T20:52:50.000Z","size":43,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-06-20T14:27:31.034Z","etag":null,"topics":["golang","library","routemaster","routemaster-client"],"latest_commit_sha":null,"homepage":"","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/deliveroo.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-08-17T17:07:43.000Z","updated_at":"2024-04-24T18:38:07.000Z","dependencies_parsed_at":"2024-06-20T14:09:25.498Z","dependency_job_id":"2940e6ee-105c-44dd-819e-a9d4240c7177","html_url":"https://github.com/deliveroo/routemaster-client-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deliveroo/routemaster-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Froutemaster-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Froutemaster-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Froutemaster-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Froutemaster-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deliveroo","download_url":"https://codeload.github.com/deliveroo/routemaster-client-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Froutemaster-client-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","library","routemaster","routemaster-client"],"created_at":"2026-01-15T00:45:46.504Z","updated_at":"2026-01-15T00:45:48.484Z","avatar_url":"https://github.com/deliveroo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Routemaster Client\n\n[![Build Status](https://travis-ci.com/deliveroo/routemaster-client-go.svg?token=Cn6Bjq9ZZa5MrmKhd9RW\u0026branch=master)](https://travis-ci.com/deliveroo/routemaster-client-go)\n[![GoDoc](https://godoc.org/github.com/deliveroo/routemaster-client-go?status.svg)](http://godoc.org/github.com/deliveroo/routemaster-client-go)\n\n`package routemaster`\n\nA Go API client and listener for the Routemaster event bus.\n\n## Usage\n\nFirst, create a new client:\n\n```go\nc, err := routemaster.NewClient(\u0026routemaster.Config{\n    URL:  \"https://routemaster.dev\",\n    UUID: \"demo\",\n})\n```\n\n### Commands\n\n#### Subscribe\n\nTo subscribe to one or more topics:\n\n```go\nc.Subscribe(\u0026routemaster.Subscription{\n    Topics:   []string{\"widgets\"},\n    Callback: \"https://app.example.com/events\",\n    UUID:     \"demo\",\n}))\n```\n\n#### Unsubscribe\n\nTo unsubscribe from a single topic:\n\n```go\nc.Unsubscribe(\"widgets\")\n```\n\nTo unsubscribe from all topics:\n\n```go\nc.UnsubscribeAll()\n```\n\n#### Push\n\nTo push an event to the bus:\n\n```go\nc.Push(\"widgets\", \u0026routemaster.Event{\n    Type:  \"create\",\n    URL:   \"https://app.example.com/widgets/1\",\n    Data:  map[string]interface{}{\n        \"color\": \"teal\",\n    },\n})\n```\n\n#### Listen\n\nTo listen to events published on the bus:\n\n```go\nhttp.Handle(\"/\", routemaster.NewListener(\n    \"demo\",\n    func(events []*routemaster.ReceivedEvent) error {\n        for _, e := range events {\n            log.Printf(\"%v\\n\", e)\n        }\n    })\n))\nhttp.ListenAndServeTLS(\":8123\", \"server.crt\", \"server.key\", nil)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeliveroo%2Froutemaster-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeliveroo%2Froutemaster-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeliveroo%2Froutemaster-client-go/lists"}