{"id":15733483,"url":"https://github.com/tomwright/deliver","last_synced_at":"2025-08-13T18:37:01.665Z","repository":{"id":57604134,"uuid":"194875324","full_name":"TomWright/deliver","owner":"TomWright","description":"Publish and subscribe to messages using standard interfaces.","archived":false,"fork":false,"pushed_at":"2019-07-05T21:01:59.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T03:45:28.450Z","etag":null,"topics":["consumer","consumers","kafka","message-queue","publish","publish-subscribe","publisher","publishing","subscribe"],"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/TomWright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-02T14:05:48.000Z","updated_at":"2023-06-03T08:51:00.000Z","dependencies_parsed_at":"2022-09-04T10:30:12.864Z","dependency_job_id":null,"html_url":"https://github.com/TomWright/deliver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomWright/deliver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdeliver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdeliver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdeliver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdeliver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomWright","download_url":"https://codeload.github.com/TomWright/deliver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fdeliver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270290206,"owners_count":24559215,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":["consumer","consumers","kafka","message-queue","publish","publish-subscribe","publisher","publishing","subscribe"],"created_at":"2024-10-04T01:00:27.856Z","updated_at":"2025-08-13T18:37:01.582Z","avatar_url":"https://github.com/TomWright.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/TomWright/deliver.svg?branch=master)](https://travis-ci.org/TomWright/deliver)\n[![codecov](https://codecov.io/gh/TomWright/deliver/branch/master/graph/badge.svg)](https://codecov.io/gh/TomWright/deliver)\n[![Documentation](https://godoc.org/github.com/TomWright/deliver?status.svg)](https://godoc.org/github.com/TomWright/deliver)\n\n# deliver\n\n```\ngo get -u github.com/tomwright/deliver\n```\n\nPublish + consume messages with standard interfaces.\n\n# Quick Start\n\nThis quick start assumes you already have your `Subscriber` or `Producer` created already.\n\nFor information on creating those objects, [see Implementations below](#implementations).\n\n## Message\n\nBelow is an example message that may be published when a user has been created.\n\n```\ntype UserCreated struct {\n\tUsername string `json:\"username\"`\n}\n\nfunc (m *UserCreated) Type() string {\n\treturn \"user.created\"\n}\n\nfunc (m *UserCreated) Payload() ([]byte, error) {\n\treturn json.Marshal(m)\n}\n\nfunc (m *UserCreated) WithPayload(bytes []byte) error {\n\treturn json.Unmarshal(bytes, m)\n}\n```\n\n## Publishing\n\n- [Example Kafka Publisher](/examples/kafka_publisher)\n\n## Subscribing\n\n- [Example Kafka Subscriber](/examples/kafka_subscriber)\n\n# Implementations\n\n## Kafka\n\n- `Message.Type()` response is used as the topic.\n- Messages are marked before the given `ConsumerFn` is executed. \n\nSetup:\n```\nbrokers := []string{\"cmg-local-kafka:9092\"}\npublisher, err := deliver.NewKafkaPublisher(brokers)\nsubscriber := deliver.NewKafkaSubscriber(brokers)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fdeliver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomwright%2Fdeliver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fdeliver/lists"}