Skip to main content

setup_frontend_heartbeat_extensions

Function setup_frontend_heartbeat_extensions 

Source
pub async fn setup_frontend_heartbeat_extensions(
    plugins: &mut Plugins,
    _plugin_options: &[PluginOptions],
    _instance: &Arc<Instance>,
) -> Result<()>
Expand description

Sets up heartbeat extensions after the frontend Instance is available.

Implementations may use the instance to construct extensions and register them in the FrontendHeartbeatExtensions stored in plugins. Registrations must be idempotent because plugin setup can be invoked more than once.