mirror of https://gitee.com/openkylin/genmai.git
编写PushExplorerDBsu()
This commit is contained in:
parent
1e90ddc370
commit
f2668ae4b9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue