Skip to main content

mock_with_plugins

Function mock_with_plugins 

Source
pub async fn mock_with_plugins(
    opts: MetasrvOptions,
    kv_backend: KvBackendRef,
    selector: Option<SelectorRef>,
    datanode_clients: Option<Arc<NodeClients>>,
    in_memory: Option<ResettableKvBackendRef>,
    plugins: Plugins,
) -> MockInfo
Expand description

Builds a mock metasrv with the given [Plugins].

Same as mock, except that the plugins are passed to the metasrv builder.