athena_rs 3.12.3

Hyper performant polyglot Database driver
Documentation
//! Outbound gateway webhooks: template rendering and HTTP delivery.
//!
//! Exposes the catalog and the dispatch.
//!
//! With the following routes, (non gateway will be deprecated in Athena 4.x.x)
//!
//! - `ROUTE_GATEWAY_DATA`: Awaiting deprecation
//! - `ROUTE_GATEWAY_FETCH`: Latest
//! - `ROUTE_GATEWAY_UPDATE`: Latest
//! - `ROUTE_GATEWAY_QUERY`: Will get more narrow permissions and tighter restrictions to be possible to be exposed
//! - `ROUTE_GATEWAY_INSERT`: Latest
//! - `ROUTE_GATEWAY_DELETE`: Has gotten changes in how `resource_id` is used
//! - `ROUTE_REST_GET`: AWAITING DEPRECATION
//! - `ROUTE_REST_POST`: AWAITING DEPRECATION
//! - `ROUTE_REST_PATCH`: AWAITING DEPRECATION
//! - `ROUTE_REST_DELETE`: AWAITING DEPRECATION
//!
//! ## Deprecation of the `ROUTE_REST_*`
//! This was due to a design flaw i made early on, as it used to support PostgREST
//! Now that the gateway can stand on it's own and support is no longer needed and is being phased
//! out we can get rid of that too. Since it's also partially flawed because a `ROUTE_GATEWAY_FETCH` is actually ALWAYS one of the `ROUTE_REST_*`.
//!
//! This means that the object that represents the Gateway request should just inherit the type of request and this inefficiency would be resolved.
//!
//! WebRequest -> GatewayRequest -> WebRequest::RequestType
//!
//!
//! We borrow the trade from the WebRequest which is WebRequest::RequestType

pub mod catalog;
mod dispatch;
pub mod schema;

pub use catalog::{GatewayWebhookEventDescriptor, gateway_webhook_event_catalog};
pub use dispatch::{
    GatewayWebhookTrigger, dispatch_webhook_test, gateway_webhook_trigger_from_http,
    spawn_gateway_webhook_dispatch,
};

pub const ROUTE_GATEWAY_DATA: &str = "gateway_data";
pub const ROUTE_GATEWAY_FETCH: &str = "gateway_fetch";
pub const ROUTE_GATEWAY_UPDATE: &str = "gateway_update";
pub const ROUTE_GATEWAY_QUERY: &str = "gateway_query";
pub const ROUTE_GATEWAY_INSERT: &str = "gateway_insert";
pub const ROUTE_GATEWAY_DELETE: &str = "gateway_delete";
pub const ROUTE_REST_GET: &str = "rest_get";
pub const ROUTE_REST_POST: &str = "rest_post";
pub const ROUTE_REST_PATCH: &str = "rest_patch";
pub const ROUTE_REST_DELETE: &str = "rest_delete";