mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-20 23:10:37 +00:00
chore: add a standalone flag in plugins during startup (#7974)
* chore: add a standalone flag in plugins during startup Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: add derive Signed-off-by: shuiyisong <xixing.sys@gmail.com> --------- Signed-off-by: shuiyisong <xixing.sys@gmail.com>
This commit is contained in:
@@ -27,3 +27,10 @@ pub type PluginOptionsSerializerRef = Arc<dyn PluginOptionsSerializer>;
|
||||
pub trait PluginOptionsDeserializer<T: DeserializeOwned>: Send + Sync {
|
||||
fn deserialize(&self, payload: &str) -> Result<T, serde_json::Error>;
|
||||
}
|
||||
|
||||
/// A flag for stating the standalone mode in the plugins.
|
||||
///
|
||||
/// The standalone build and start process calls `setup_frontend_plugins` and `setup_datanode_plugins`,
|
||||
/// so we add a flag to the plugins to indicate that the plugins are running in the standalone mode.
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct StandaloneFlag;
|
||||
|
||||
Reference in New Issue
Block a user