编写PushExplorerDBsu()

This commit is contained in:
chenxinquan 2022-11-08 19:58:06 +08:00
parent 1e90ddc370
commit f2668ae4b9
1 changed files with 18 additions and 0 deletions

View File

@ -185,3 +185,21 @@ func (dtr *doctor)PushExplorerSystem(configfile string) error {
return nil
}
func (dtr *doctor)PushExplorerWeb(configfile string) error {
ek := ExplorerWeb{}
ek.Setup(&ConfigParserYAML{}, &ExplorerConfigWeb{})
ek.LoadConfig(configfile)
ek.SetupSandbox(&sandbox.SandboxDefault{})
config, rc := ek.GetExplorerConfigWeb()
/* */
if (nil != rc) {
return rc
} // if (nil != ...
dtr.ExplorersWeb[config.Id] = ek
return nil
}