/pubsub-debug

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

Primary LanguageRustGNU General Public License v3.0GPL-3.0

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