crs-connector

command module
v0.0.0-...-e76c887 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 8 Imported by: 0

README

CRS RabbitMQ Connector

trivial example of populating updates from RabbitMQ message queue into Google Cloud Retail API Product Catalog.

Usage

  1. obtain a service account that has Retail Editor permissions, Manage Keys > Create a Key, download the key and move it to root of the repository named as service-account.json
  2. run the RabbitMQ instance
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.12-management
  1. run the subscriber
go run . --subscriber

from here on the body of any messages from the queue named hello will be used to set the title of the product with ID test-product

  1. run the publisher
go run . --publisher

this connects to the message queue named hello and sends a Hello World! plaintext message

Disclaimer

This is not Google-approved code, it is a personal project for educational purposes and it is not suitable for production.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL