feat: add subscriptions

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-09-23 18:21:39 +02:00
parent c662d65799
commit 98550ace16
21 changed files with 431 additions and 130 deletions

View File

@@ -0,0 +1,18 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Envelope {
#[prost(message, optional, tag="1")]
pub metadata: ::std::option::Option<Metadata>,
#[prost(bytes, tag="2")]
pub content: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Metadata {
#[prost(string, tag="1")]
pub domain: std::string::String,
#[prost(string, tag="2")]
pub entity: std::string::String,
#[prost(uint64, tag="3")]
pub timestamp: u64,
#[prost(uint64, tag="4")]
pub sequence: u64,
}

View File

@@ -0,0 +1,3 @@
pub mod crunch {
include!("crunch.envelope.rs");
}