{"id":43124723,"url":"https://github.com/veritone/go-messaging-lib","last_synced_at":"2026-01-31T20:08:31.624Z","repository":{"id":83524836,"uuid":"124924046","full_name":"veritone/go-messaging-lib","owner":"veritone","description":"Core library for interfacing with Veritone's eventing system in Golang","archived":false,"fork":false,"pushed_at":"2020-01-14T21:20:21.000Z","size":14039,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-08-14T09:41:30.054Z","etag":null,"topics":["consumer","eventing","kafka","library","nsq","producer","pub-sub","stream"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veritone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-12T17:12:31.000Z","updated_at":"2024-09-11T06:02:18.000Z","dependencies_parsed_at":"2023-03-12T18:41:07.795Z","dependency_job_id":null,"html_url":"https://github.com/veritone/go-messaging-lib","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/veritone/go-messaging-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veritone%2Fgo-messaging-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veritone%2Fgo-messaging-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veritone%2Fgo-messaging-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veritone%2Fgo-messaging-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veritone","download_url":"https://codeload.github.com/veritone/go-messaging-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veritone%2Fgo-messaging-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28952603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["consumer","eventing","kafka","library","nsq","producer","pub-sub","stream"],"created_at":"2026-01-31T20:08:31.545Z","updated_at":"2026-01-31T20:08:31.612Z","avatar_url":"https://github.com/veritone.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-messaging-lib\n\n## Overview\n\nThis project provides simple interfaces to interact with Veritone's core eventing system. There are two main patterns currently supported by this library:\n\n* Pub-Sub\n* Streaming\n\nDepending on the underlying eventing system, user should use the corresponding package to initialize the its client. The supported systems are Kafka and NSQ.\n\n## Goals\n\n* Offers simple setup and just work out of the box.\n* Provides consistent interfaces that should work for various eventing systems (Kafka, RabbitMQ, NSQ, etc.), thus preventing major breaking changes.\n* Provides multiple examples to jump start.\n* Handles edge cases and difficult technical requirements behind the scene.\n* Exposes monitoring statistics with prometheus.\n\n## Usage\n\nPlease see the [instructions](example/README.md)\n\n## Basic Operations:\n\n### Create Producer\n\n```go\nmessage, err := json.Marshal(data)\nif err != nil {\n    // handle error\n}\nproducer := Producer(topic, kafka.StrategyRoundRobin, \"localhost:9092\")\nmsg, err := NewMessage(\"hash_key\", message)\nif err != nil {\n    // handle error\n}\nerr = producer.Produce(context.TODO(), msg)\nif err != nil {\n    // handle error\n}\nerr = producer.Close()\nif err != nil {\n    // handle error\n}\n```\n\n### Create Consumer\n\n```go\nconsumer, err = kafka.Consumer(\"topic_name\", \"consumer_group_name\", \"localhost:9092\")\nif err != nil {\n    // handle error\n}\nqueue, err = consumer.Consume(context.TODO(), kafka.ConsumerGroupOption)\nif err != nil {\n    // handle error\n}\nfor item := range queue {\n    log.Printf(\"Received: (%s) (%#v) (%T)\\n\", item.Payload(), item.Metadata(), item.Raw())\n}\n```\n\n## Notes\n\nThis repo is still a WIP. It's not yet suitable for production use.\n\n## Mock\n\nThis package includes mocks of all its interface types (in package `mocks`) that is useful for testing. Please update it after changing any of the interfaces.\n\n[Mockery](https://github.com/vektra/mockery) - A mock code autogenerator for golang\n```\nmockery -name=Manager\nmockery -name=Producer\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveritone%2Fgo-messaging-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveritone%2Fgo-messaging-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveritone%2Fgo-messaging-lib/lists"}