{"id":43424181,"url":"https://github.com/felipebool/gopsub","last_synced_at":"2026-02-02T18:58:33.554Z","repository":{"id":88384095,"uuid":"293448878","full_name":"felipebool/gopsub","owner":"felipebool","description":"Simple command line client for GCloud PubSub emulator, useful for local debugging applications","archived":false,"fork":false,"pushed_at":"2020-09-11T19:09:18.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T05:05:25.841Z","etag":null,"topics":["gcloud","gcloud-cli","gcloud-pubsub","go","golang"],"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/felipebool.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":"2020-09-07T07:05:41.000Z","updated_at":"2020-09-11T19:08:17.000Z","dependencies_parsed_at":"2024-06-20T04:19:31.145Z","dependency_job_id":"6f4acc85-555d-4c30-951a-fe1e38e18b47","html_url":"https://github.com/felipebool/gopsub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/felipebool/gopsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebool%2Fgopsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebool%2Fgopsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebool%2Fgopsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebool%2Fgopsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipebool","download_url":"https://codeload.github.com/felipebool/gopsub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipebool%2Fgopsub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29017938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T18:51:31.335Z","status":"ssl_error","status_checked_at":"2026-02-02T18:49:20.777Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["gcloud","gcloud-cli","gcloud-pubsub","go","golang"],"created_at":"2026-02-02T18:58:33.465Z","updated_at":"2026-02-02T18:58:33.541Z","avatar_url":"https://github.com/felipebool.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gopsub\n\nThis is a simple, command line client for GCloud PubSub emulator. The idea is to help\nlocal debug of applications using GCloud PubSub, by providing a simple interface for\ntopic/subscription creation/removal and message publishing.\n\n# Installation\nRun `go get github.com/felipebool/gopsub`. \n\n# Commands\n`gopsub` allows you to create, remove and list topics and subscriptions,\nand publish messages.\n\n## Global required flags\n* `--project` or `-p`: project id\n\n## Global optional flags\n* `--host`: gcloud pubsub emulator host, default value is `localhost`\n* `--post`: gcloud pubsub emulator port, default value is `8085`\n\n## Topic\n\n### List topics\nThe following command lists all topics for project `my-project`\n\n`gopsub --project my-project topic list`\n\n### Create topic\nThe following command creates a topic called `topic1` in project `my-project`\n\n`gopsub --project my-project topic create --id topic1`\n\n### Remove topic\nThe following command removes topic `topic1` from project `my-project`\n\n`gopsub --project my-project topic remove --id topic1`\n\n## Subscription\n\n### List subscriptions\nThe following command lists all subscriptions for project `my-project`\n\n`gopsub --project my-project subscription list`\n\n### Create subscription\nThe following command creates a subscription called `subscription1` in project `my-project`\n\n`gopsub --project my-project subscription create --id subscription1`\n\nTo create a push subscription, just provide a valid endpoint using `--endpoint` or `-e`\n\n`gopsub --project my-project subscription create --id subscription1 --endpoint http://localhost/push`\n\n### Remove subscription\nThe following command removes subscription `subscription1` from project `my-project`\n\n`gopsub --project my-project subscription remove --id subscription1`\n\n## Publish\nThe following command publishes a message passed by `--data` to topic `topic1`\n\n`gopsub --project my-project publish --topic-id topic1 --data '{\"username\":\"xyz\",\"password\":\"xyz\"}'`\n\nIf you want to publish more complex data, you can use `--data-from-file` passing\na path to a file. `gopsub` will read the content and publish it.\n\n`gopsub --project my-project publish --topic-id topic1 --data-from-file /tmp/lol.json`\n\nif `--data` and `--data-from-file` are both provided, the value passed through `--data`\nwill be used.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipebool%2Fgopsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipebool%2Fgopsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipebool%2Fgopsub/lists"}