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")
|
||||
if v != nil {
|
||||
info.Version = v.(string)
|
||||
info.Version = *v.(*string)
|
||||
}
|
||||
|
||||
prio, _ := plug.code.Lookup("Priority")
|
||||
if prio != nil {
|
||||
info.Priority = prio.(int)
|
||||
info.Priority = *prio.(*int)
|
||||
}
|
||||
|
||||
// st, _ := getSchemaDict(reflect.TypeOf(plug.config).Elem())
|
||||
|
Reference in New Issue
Block a user