Skip to main content

Crate drasi_bootstrap_application

Crate drasi_bootstrap_application 

Source
Expand description

Application bootstrap plugin for Drasi

This plugin provides the Application bootstrap provider implementation for replaying stored insert events during query subscription.

§Example

use drasi_bootstrap_application::ApplicationBootstrapProvider;

// Using the builder - creates with isolated storage
let provider = ApplicationBootstrapProvider::builder().build();

// Using the builder with shared storage
use std::sync::Arc;
use tokio::sync::RwLock;
use drasi_core::models::SourceChange;

let shared_data = Arc::new(RwLock::new(Vec::<SourceChange>::new()));
let provider = ApplicationBootstrapProvider::builder()
    .with_shared_data(shared_data)
    .build();

// Or using the constructor directly
let provider = ApplicationBootstrapProvider::new();

Re-exports§

pub use application::ApplicationBootstrapProvider;
pub use application::ApplicationBootstrapProviderBuilder;

Modules§

application
Application bootstrap provider for replaying stored insert events
descriptor
Plugin descriptor for the Application bootstrap provider.