V2bX/core/rule.go

19 lines
479 B
Go
Raw Normal View History

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)
}
func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error {
2022-08-12 06:44:56 -04:00
return p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
}
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error) {
return p.dispatcher.RuleManager.GetDetectResult(tag)
}