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

Method SetMainCacheUpdater

plugin/plugin.go:499–501  ·  view source on GitHub ↗

SetMainCacheUpdater 设置主缓存更新函数(修复后的签名,增加关键词参数)

(updater func(string, []model.SearchResult, time.Duration, bool, string) error)

Source from the content-addressed store, hash-verified

497
498// SetMainCacheUpdater 设置主缓存更新函数(修复后的签名,增加关键词参数)
499func (p *BaseAsyncPlugin) SetMainCacheUpdater(updater func(string, []model.SearchResult, time.Duration, bool, string) error) {
500 p.mainCacheUpdater = updater
501}
502
503// Name 返回插件名称
504func (p *BaseAsyncPlugin) Name() string {

Callers 3

initAppFunction · 0.45
NewSearchServiceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected