{"id":15597486,"url":"https://github.com/cdimascio/go-kafka-ibm-message-hub-example","last_synced_at":"2025-10-14T16:08:14.441Z","repository":{"id":83296508,"uuid":"79980853","full_name":"cdimascio/go-kafka-ibm-message-hub-example","owner":"cdimascio","description":"Example using IBM Message Hub Kafka with Go","archived":false,"fork":false,"pushed_at":"2017-01-25T03:50:35.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T08:37:37.782Z","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/cdimascio.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-01-25T03:48:56.000Z","updated_at":"2017-04-12T21:52:36.000Z","dependencies_parsed_at":"2023-03-12T17:53:50.961Z","dependency_job_id":null,"html_url":"https://github.com/cdimascio/go-kafka-ibm-message-hub-example","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"e665fc0ce519ed0524ea31ff889e7d0ce4648e34"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdimascio/go-kafka-ibm-message-hub-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgo-kafka-ibm-message-hub-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgo-kafka-ibm-message-hub-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgo-kafka-ibm-message-hub-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgo-kafka-ibm-message-hub-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdimascio","download_url":"https://codeload.github.com/cdimascio/go-kafka-ibm-message-hub-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgo-kafka-ibm-message-hub-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019556,"owners_count":26086749,"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-10-14T02:00:06.444Z","response_time":60,"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":"2024-10-03T01:22:05.603Z","updated_at":"2025-10-14T16:08:14.395Z","avatar_url":"https://github.com/cdimascio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-kafka-ibm-message-hub-example\n\nThis sample show how to use IBM Message Hub with GoLang using the sarama kafka client.\n\n## Setup and Run\n\n1. Create an [IBM Message Hub](https://console.ng.bluemix.net/catalog/services/message-hub) Service instance via IBM [Bluemix](https://www.bluemix.net[]())\n\n2. Clone this repo\n\n\t- `git clone https://github.ibm.com/dimascio/go-kafka-ibm-message-hub-example`\n\n3. Create your own certificate\n\n\tGenerated private key:\n\n\t`openssl genrsa -out server.key 2048`\n\n\tTo generate a certificate:\n\n\t`openssl req -new -x509 -key server.key -out server.pem -days 3650`\n\n\tThis will create `server.pem` and a `server.key`\n\n4. `cd \u003cproject-root\u003e` where `\u003cproject-root\u003e` is where you cloned this repo\n5. Copy `server.pem` and a `server.key` to `\u003cproject-root\u003e`\n6. Move `message-hub-creds.json.sample` to `message-hub-creds.json`\n7. Populate `message-hub-creds.json` with credentials from step 1.\n4. Run `go build`\n5. Start the consumer.\n\n \t`go-kafka-ibm-message-hub-example -type=consumer -topic=mytopic`\n\n6. Start the producer\n\n\t`go-kafka-ibm-message-hub-example -type=producer -topic=mytopic -num=20`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fgo-kafka-ibm-message-hub-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdimascio%2Fgo-kafka-ibm-message-hub-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fgo-kafka-ibm-message-hub-example/lists"}