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