plugin.go 325 字节
Newer Older
Y
Your Name 已提交
1
package pluginmanager
E
eoLinker API Management 已提交
2 3

import (
黄孟柱 已提交
4 5
	"github.com/eolinker/goku-api-gateway/goku-node/manager/updater"
	dao_plugin "github.com/eolinker/goku-api-gateway/server/dao/node-mysql/dao-plugin"
E
eoLinker API Management 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18
)

func init() {
	updater.Add(load, 1, "goku_plugin")
}

func load() {
	pis, e := dao_plugin.GetAll()
	if e != nil {
		return
	}
	reset(pis)
}