{"id":15776548,"url":"https://github.com/devigned/testhub","last_synced_at":"2025-05-07T02:05:12.461Z","repository":{"id":57567375,"uuid":"127441904","full_name":"devigned/testhub","owner":"devigned","description":"Test CLI for Azure Event Hubs","archived":false,"fork":false,"pushed_at":"2019-06-06T17:18:13.000Z","size":85,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T02:05:06.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/devigned.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}},"created_at":"2018-03-30T15:13:44.000Z","updated_at":"2023-08-29T10:45:01.000Z","dependencies_parsed_at":"2022-09-15T05:23:03.288Z","dependency_job_id":null,"html_url":"https://github.com/devigned/testhub","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Ftesthub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Ftesthub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Ftesthub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Ftesthub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devigned","download_url":"https://codeload.github.com/devigned/testhub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798855,"owners_count":21805887,"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-10-04T17:22:16.458Z","updated_at":"2025-05-07T02:05:12.432Z","avatar_url":"https://github.com/devigned.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Hub Testing CLI\n`testhub` is a command line tool to help test Event Hub sending and receiving.\n\n### Usage\nWhen simply executing `testhub`, you will be greeted with a help page. `help` can be called on each command.\n```bash\n$ testhub\nhubtest is a simple command line testing tool for the Event Hub library\n\nUsage:\n  hubtest [command]\n\nAvailable Commands:\n  delete      Delete an Event Hub\n  help        Help about any command\n  receive     Receive messages from an Event Hub\n  send        Send messages to an Event Hub\n  version     Print the git ref\n\nFlags:\n      --conn-str string    Connection string for Event Hub\n      --debug              debug level logging\n  -h, --help               help for hubtest\n      --hub string         name of the Event Hub\n      --key string         SAS key for the key-name\n      --key-name string    SAS key name for the Event Hub\n      --namespace string   namespace of the Event Hub\n\nUse \"hubtest [command] --help\" for more information about a command.\n```\n\n#### Send\nSend will by default send 1 messages of 256 bytes.\n```bash\n$ testhub send --namespace yourNamespace --hub yourHub --key-name yourKeyName --key yourKey\n```\nSend with a connection string.\n```bash\n$ testhub send --conn-str yourConnectionString\n```\n\nYou can specify more messages by using `--msg-count` and `--msg-size`.\n```bash\n$ testhub send --conn-str yourConnectionString --msg-count 100 --msg-size 100\n```\n\n#### Receive\nListen for messages on all partitions of a given Event Hub.\n```bash\n$ testhub receive --namespace yourNamespace --hub yourHub --key-name yourKeyName --key yourKey\n```\nUse a connection string instead.\n```bash\n$ testhub receive --conn-str yourConnectionString\n```\n\n#### Debug\nIf you would like to see more in-depth information about what is happening, run the commands with `--debug`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevigned%2Ftesthub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevigned%2Ftesthub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevigned%2Ftesthub/lists"}