FabienD / pubsub-debug

A tools to help to send and view message from the GCP pub/sub emulator (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A litte cli tool to push and subscribe to GPC PubSub emulator

Build the cli

This require Rust and Cargo to be build.

cargo build --release

Copy the binary target/release/pubsub-debug to your path.

The cli use .env to get the emulator host, port and the project id.

You can create a .env file in the root of the project by copying the .env.dist file. You can also set the environment variables directly before running the cli.

A docker-compose file is provided to run the emulator and use the same .env file.

Publish a message

pubsub-debug publish --topic=topic-name --message="Hello World"

Subscribre and receive message

pubsub-debug subscribre --topic=topic-name

About

A tools to help to send and view message from the GCP pub/sub emulator (WIP)

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%