瀏覽代碼

feat():add functions

EMqmyd 4 年之前
父節點
當前提交
2002a8b44d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugins/manager.go

+ 2 - 0
plugins/manager.go

@@ -281,6 +281,8 @@ func (m *Manager) Register(t PluginType, j *Plugin) error {
 		readSinkMetaFile(path.Join(m.etcDir, PluginTypes[t], name+`.json`))
 	} else if SOURCE == t {
 		readSourceMetaFile(path.Join(m.etcDir, PluginTypes[t], name+`.json`))
+	} else if FUNCTION == t {
+		readFuncMetaFile(path.Join(m.etcDir, PluginTypes[t], name+`.json`))
 	}
 	m.registry.Store(t, name, version)
 	return nil