2022-08-12 06:02:06 -04:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/Yuzuki616/V2bX/api"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) error {
|
2022-08-12 06:44:56 -04:00
|
|
|
return p.dispatcher.RuleManager.UpdateRule(tag, newRuleList)
|
2022-08-12 06:02:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error {
|
2022-08-12 06:44:56 -04:00
|
|
|
|
|
|
|
return p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
|
2022-08-12 06:02:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error) {
|
|
|
|
return p.dispatcher.RuleManager.GetDetectResult(tag)
|
|
|
|
}
|