{"id":21013839,"url":"https://github.com/jdecool/go-mercure","last_synced_at":"2025-09-30T22:30:54.622Z","repository":{"id":57636316,"uuid":"255449096","full_name":"jdecool/go-mercure","owner":"jdecool","description":"Go client library for publishing an event through Mercure protocol","archived":false,"fork":false,"pushed_at":"2020-06-01T21:21:35.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T22:59:21.866Z","etag":null,"topics":[],"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/jdecool.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}},"created_at":"2020-04-13T21:50:50.000Z","updated_at":"2023-02-02T09:14:47.000Z","dependencies_parsed_at":"2022-09-26T20:21:49.995Z","dependency_job_id":null,"html_url":"https://github.com/jdecool/go-mercure","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fgo-mercure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fgo-mercure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fgo-mercure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fgo-mercure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdecool","download_url":"https://codeload.github.com/jdecool/go-mercure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234786475,"owners_count":18886433,"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-19T09:44:18.470Z","updated_at":"2025-09-30T22:30:49.351Z","avatar_url":"https://github.com/jdecool.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-mercure\n==========\n\ngo-mercure is a Go client library for [Mercure](https://mercure.rocks).\n\n## Usage\n\n```go\nimport \"github.com/jdecool/go-mercure/mercure\"\n```\n\n### Publish an event\n\n```go\nu, _ := url.Parse(\"https://localhost:3000/.well-known/mercure\")\njwt := \"my-jwt\"\n\nm := mercure.Message{\n    Topics: []string{\n        \"http://localhost/test\",\n    },\n    Data:  []byte(\"Hello World\"),\n}\n\np := mercure.NewPublisher(u, jwt, nil)\nevtId, err := p.Publish(m)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdecool%2Fgo-mercure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdecool%2Fgo-mercure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdecool%2Fgo-mercure/lists"}