MCPcopy
hub / github.com/eolinker/goku_lite / GetPluginConfig

Function GetPluginConfig

console/controller/plugin/plugin.go:244–261  ·  view source on GitHub ↗

GetPluginConfig 获取插件配置

(httpResponse http.ResponseWriter, httpRequest *http.Request)

Source from the content-addressed store, hash-verified

242
243//GetPluginConfig 获取插件配置
244func GetPluginConfig(httpResponse http.ResponseWriter, httpRequest *http.Request) {
245
246 pluginName := httpRequest.PostFormValue("pluginName")
247 flag, result, err := plugin.GetPluginConfig(pluginName)
248 if !flag {
249
250 controller.WriteError(httpResponse,
251 "210000",
252 "plugin",
253 "[ERROR]The plugin does not exist!",
254 err)
255 return
256
257 }
258 controller.WriteResultInfo(httpResponse, "plugin", "pluginConfig", result)
259
260 return
261}
262
263//CheckIndexIsExist 判断插件优先级是否存在
264func CheckIndexIsExist(httpResponse http.ResponseWriter, httpRequest *http.Request) {

Callers

nothing calls this directly

Calls 3

GetPluginConfigFunction · 0.92
WriteErrorFunction · 0.92
WriteResultInfoFunction · 0.92

Tested by

no test coverage detected