Skip to main content

Crate sse_gateway_gcp

Crate sse_gateway_gcp 

Source
Expand description

Google Cloud Pub/Sub adapter for SSE Gateway

§Example

use sse_gateway::Gateway;
use sse_gateway_gcp::GcpPubSubSource;

Gateway::builder()
    .source(GcpPubSubSource::new("my-project", "my-subscription"))
    .storage(sse_gateway::MemoryStorage::default())
    .build()?
    .run()
    .await

Structs§

GcpPubSubSource
Google Cloud Pub/Sub message source