ServicePlugin

Trait ServicePlugin 

Source
pub trait ServicePlugin:
    Send
    + Sync
    + Debug {
    // Required methods
    fn name(&self) -> &str;
    fn start(&self) -> Result<ServiceHandle>;
    fn stop(&self, handle: ServiceHandle) -> Result<()>;
    fn health_check(&self, handle: &ServiceHandle) -> HealthStatus;
}
Expand description

Plugin-based service registry (no hardcoded postgres/redis)

Required Methods§

Source

fn name(&self) -> &str

Get service name

Source

fn start(&self) -> Result<ServiceHandle>

Start the service

Source

fn stop(&self, handle: ServiceHandle) -> Result<()>

Stop the service

Source

fn health_check(&self, handle: &ServiceHandle) -> HealthStatus

Check service health

Implementors§