pub struct ApiHandlerBuilder { /* private fields */ }Expand description
Builder for ApiHandler.
Implementations§
Source§impl ApiHandlerBuilder
impl ApiHandlerBuilder
Sourcepub fn health(self, health: Arc<HealthChecker>) -> Self
pub fn health(self, health: Arc<HealthChecker>) -> Self
Sets the health checker.
Sourcepub fn metrics(self, metrics: Arc<MetricsRegistry>) -> Self
pub fn metrics(self, metrics: Arc<MetricsRegistry>) -> Self
Sets the metrics registry.
Sourcepub fn reloader(self, reloader: Arc<ConfigReloader>) -> Self
pub fn reloader(self, reloader: Arc<ConfigReloader>) -> Self
Sets the configuration reloader.
Sourcepub fn rate_limiter(self, rate_limiter: Arc<RwLock<RateLimitManager>>) -> Self
pub fn rate_limiter(self, rate_limiter: Arc<RwLock<RateLimitManager>>) -> Self
Sets the rate limit manager.
Sourcepub fn access_lists(self, access_lists: Arc<RwLock<AccessListManager>>) -> Self
pub fn access_lists(self, access_lists: Arc<RwLock<AccessListManager>>) -> Self
Sets the access list manager.
Sourcepub fn config_manager(self, config_manager: Arc<ConfigManager>) -> Self
pub fn config_manager(self, config_manager: Arc<ConfigManager>) -> Self
Sets the configuration manager for CRUD operations.
Sourcepub fn auth_token(self, token: impl Into<String>) -> Self
pub fn auth_token(self, token: impl Into<String>) -> Self
Sets the API authentication token.
Sourcepub fn entity_manager(self, entity_manager: Arc<EntityManager>) -> Self
pub fn entity_manager(self, entity_manager: Arc<EntityManager>) -> Self
Sets the entity manager for dashboard entity tracking.
Sourcepub fn block_log(self, block_log: Arc<BlockLog>) -> Self
pub fn block_log(self, block_log: Arc<BlockLog>) -> Self
Sets the block log for dashboard block event history.
Sourcepub fn campaign_manager(self, manager: Arc<CampaignManager>) -> Self
pub fn campaign_manager(self, manager: Arc<CampaignManager>) -> Self
Sets the campaign manager for threat correlation.
Sourcepub fn actor_manager(self, manager: Arc<ActorManager>) -> Self
pub fn actor_manager(self, manager: Arc<ActorManager>) -> Self
Sets the actor manager for behavioral tracking.
Sourcepub fn session_manager(self, manager: Arc<SessionManager>) -> Self
pub fn session_manager(self, manager: Arc<SessionManager>) -> Self
Sets the session manager for session validation and hijack detection.
Sourcepub fn synapse_engine(self, engine: Arc<RwLock<Synapse>>) -> Self
pub fn synapse_engine(self, engine: Arc<RwLock<Synapse>>) -> Self
Sets the synapse detection engine for dry-run evaluation.
Sourcepub fn payload_manager(self, manager: Arc<PayloadManager>) -> Self
pub fn payload_manager(self, manager: Arc<PayloadManager>) -> Self
Sets the payload profiling manager.
Sourcepub fn trends_manager(self, manager: Arc<TrendsManager>) -> Self
pub fn trends_manager(self, manager: Arc<TrendsManager>) -> Self
Sets the trends/anomaly detection manager.
Sourcepub fn signal_manager(self, manager: Arc<SignalManager>) -> Self
pub fn signal_manager(self, manager: Arc<SignalManager>) -> Self
Sets the signal intelligence manager.
Sourcepub fn crawler_detector(self, detector: Arc<CrawlerDetector>) -> Self
pub fn crawler_detector(self, detector: Arc<CrawlerDetector>) -> Self
Sets the crawler/bot detector.
Sourcepub fn dlp_scanner(self, scanner: Arc<DlpScanner>) -> Self
pub fn dlp_scanner(self, scanner: Arc<DlpScanner>) -> Self
Sets the DLP scanner.
Sourcepub fn horizon_client(self, client: Arc<HorizonClient>) -> Self
pub fn horizon_client(self, client: Arc<HorizonClient>) -> Self
Sets the Signal Horizon client.
Sourcepub fn build(self) -> ApiHandler
pub fn build(self) -> ApiHandler
Builds the API handler.
Trait Implementations§
Source§impl Default for ApiHandlerBuilder
impl Default for ApiHandlerBuilder
Source§fn default() -> ApiHandlerBuilder
fn default() -> ApiHandlerBuilder
Auto Trait Implementations§
impl Freeze for ApiHandlerBuilder
impl !RefUnwindSafe for ApiHandlerBuilder
impl Send for ApiHandlerBuilder
impl Sync for ApiHandlerBuilder
impl Unpin for ApiHandlerBuilder
impl UnsafeUnpin for ApiHandlerBuilder
impl !UnwindSafe for ApiHandlerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more