MCPcopy
hub / github.com/fish2018/pansou / init

Function init

plugin/duoduo/duoduo.go:76–81  ·  view source on GitHub ↗

在init函数中注册插件

()

Source from the content-addressed store, hash-verified

74
75// 在init函数中注册插件
76func init() {
77 plugin.RegisterGlobalPlugin(NewDuoduoPlugin())
78
79 // 启动缓存清理goroutine
80 go startCacheCleaner()
81}
82
83// startCacheCleaner 启动一个定期清理缓存的goroutine
84func startCacheCleaner() {

Callers

nothing calls this directly

Calls 3

RegisterGlobalPluginFunction · 0.92
NewDuoduoPluginFunction · 0.85
startCacheCleanerFunction · 0.70

Tested by

no test coverage detected