mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-23 10:28:13 -05:00
19 lines
489 B
Go
19 lines
489 B
Go
package core
|
|
|
|
import (
|
|
"github.com/Yuzuki616/V2bX/api/panel"
|
|
)
|
|
|
|
func (p *Core) UpdateRule(tag string, newRuleList []panel.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) ([]panel.DetectResult, error) {
|
|
return p.dispatcher.RuleManager.GetDetectResult(tag)
|
|
}
|