Exemple #1
0
// Converts Plugin protobuf message to core.Plugin
func MsgToCorePlugin(msg *Plugin) core.Plugin {
	pl := &SubPlugin{
		typeName: msg.TypeName,
		name:     msg.Name,
		version:  int(msg.Version),
	}
	return core.Plugin(pl)
}
Exemple #2
0
// Convert from core.SubscribedPlugin to core.Plugin
func ToCorePlugin(pl core.SubscribedPlugin) core.Plugin {
	return core.Plugin(pl)
}