mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
change project structure, performance optimization
This commit is contained in:
19
core/rule.go
Normal file
19
core/rule.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/Yuzuki616/V2bX/api"
|
||||
)
|
||||
|
||||
func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) error {
|
||||
err := p.dispatcher.RuleManager.UpdateRule(tag, newRuleList)
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error {
|
||||
err := p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error) {
|
||||
return p.dispatcher.RuleManager.GetDetectResult(tag)
|
||||
}
|
||||
Reference in New Issue
Block a user