plugin.go 326 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3
package plugin_manager

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)
}