Init#
-
ClientInfo YR::Init(const Config &conf)#
openYuanrong 初始化 API,用于配置运行模式和系统参数。参数规范请参考 结构体说明。
// 本地模式 YR::Config conf; conf.mode = YR::Config::Mode::LOCAL_MODE; conf.threadPoolSize = 10; YR::Init(conf);
// 集群模式 YR::Config conf; conf.mode = YR::Config::Mode::LOCAL_MODE; conf.threadPoolSize = 10; YR::Init(conf);
Note
当 openYuanrong 集群启用多租户功能时,用户需配置租户ID。有关租户ID配置的详细信息,请参阅 结构体说明 中关于“租户 id”的章节。