shinzui / rust-pubsub-example

a example of google-pubsub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rust-pubsub-example

This is a example of google-pubsub.

dependencies

概要

RustからGCPの Cloud Pub/Sub にメッセージをpublishしたり、 subscribeしたりするサンプルです。
yup-oauth2のサンプルコード を参考に・・・というかほとんどそのままです。

yup-oauth2google-apis-rs があれば GCPの操作系が割りと何でも簡単に出来てしまいそうです。

認証アカウントはサービスアカウントで、認証情報にはサービスアカウントの鍵(JSON)を使っています。

About

a example of google-pubsub


Languages

Language:Rust 100.0%