gsm-core 0.4.32

Core types and platform abstractions for the Greentic messaging runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{http::RawRequest, prelude::*};
use serde_json::Value;

#[async_trait::async_trait]
pub trait Ingress: Send + Sync {
    async fn to_envelope(&self, req: &RawRequest) -> NodeResult<InvocationEnvelope>;
}

#[derive(Debug, Clone)]
pub struct VerifiedEvent {
    pub tenant_ctx: TenantCtx,
    pub payload: Value,
}