8000 GitHub - rivory/publisher: A golang CLI to interact with pubsub emulator in local
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rivory/publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publisher

A golang tool to interact with pubsub emulator on your local env

Install

To install the tool on your machine

make install

or to have the binary recompiled in dist to use it as an executable

make dist

Usage

Flags definitions :

--host="" // to define your local host for the pubsub emulator
--topic="" // a topic ID
--message="" // a json message
--project="" // the project ID

List pub sub topics

publisher listTopic --host="127.0.0.1:8085"

Create a new topic

publisher createTopic --host="127.0.0.1:8085" --topic="topic"

Publish a message to a topic

publisher publish --host="127.0.0.1:8085" --topic="topic" --message='{"message":"content"}'

Listen to a topic

publisher listenTopic --topic=topic

About

A golang CLI to interact with pubsub emulator in local

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0