Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tool to replay a pull subscription to a topic (#350)
This tool uses the local gcloud credentials to listen to a pull subscription (intended for the pull subscription we created by default for each dead letter topic), and send it back to a topic (the original topic). Example usage: ``` ❯ go run . --source=nghia-...-dlq-pjxu --dest=nghia-...-us-central1 --projectID nghia-... Listening for messages. Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Found message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } Found message: { "content": "this is a test" } Replayed message: { "content": "this is a test" } No messages received in the last 10s . Exiting. ``` Signed-off-by: Nghia Tran <tcnghia@gmail.com>
- Loading branch information