MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / init

Function init

gateway/apinto/plugin/global.go:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21var pluginConf []*GlobalPlugin
22
23func init() {
24 var err error
25
26 pc := make([]*GlobalPlugin, 0)
27 err = yaml.Unmarshal(pluginData, &pc)
28 if err != nil {
29 panic(err)
30 }
31
32 pluginConf = pc
33}
34
35func GetGlobalPluginConf() []*GlobalPlugin {
36 return pluginConf

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected