package core

import (
	"github.com/AikoCute-Offical/xflash-backend/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)
}
