mirror of
https://github.com/Kong/go-pluginserver.git
synced 2025-10-06 08:37:15 +08:00
@@ -256,12 +256,12 @@ func (s *PluginServer) GetPluginInfo(name string, info *PluginInfo) error {
|
|||||||
|
|
||||||
v, _ := plug.code.Lookup("Version")
|
v, _ := plug.code.Lookup("Version")
|
||||||
if v != nil {
|
if v != nil {
|
||||||
info.Version = v.(string)
|
info.Version = *v.(*string)
|
||||||
}
|
}
|
||||||
|
|
||||||
prio, _ := plug.code.Lookup("Priority")
|
prio, _ := plug.code.Lookup("Priority")
|
||||||
if prio != nil {
|
if prio != nil {
|
||||||
info.Priority = prio.(int)
|
info.Priority = *prio.(*int)
|
||||||
}
|
}
|
||||||
|
|
||||||
// st, _ := getSchemaDict(reflect.TypeOf(plug.config).Elem())
|
// st, _ := getSchemaDict(reflect.TypeOf(plug.config).Elem())
|
||||||
|
Reference in New Issue
Block a user