mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-25 19:18:13 -05:00
19 lines
479 B
Go
19 lines
479 B
Go
package core
|
|
|
|
import (
|
|
"github.com/Yuzuki616/V2bX/api"
|
|
)
|
|
|
|
func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) error {
|
|
return p.dispatcher.RuleManager.UpdateRule(tag, newRuleList)
|
|
}
|
|
|
|
func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error {
|
|
|
|
return p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
|
|
}
|
|
|
|
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error) {
|
|
return p.dispatcher.RuleManager.GetDetectResult(tag)
|
|
}
|