Envoie de l'annonce en multicast fonctionnelle

This commit is contained in:
2022-02-22 09:35:44 +01:00
parent e9e1dbf6d8
commit 9eb4e8204e
7 changed files with 36 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ type HelloRule struct {
}
// CreateHelloRule Création d'une instance de HelloRule
func CreateHelloRule(pattern string) *HelloRule {
func CreateHelloRule(pattern string) protocol.IProtocolWriter {
return &HelloRule{
Cmd: HelloRuleName,
matcher: protocol.CreateRegexMatcher(pattern),
@@ -24,7 +24,6 @@ func (rule HelloRule) GetCmd() string {
return rule.Cmd
}
func (rule HelloRule) Execute(argsData []string) {
//TODO implement me
panic("implement me")
func (rule HelloRule) Execute(argsData ...string) (string, bool) {
return rule.matcher.Build("HELLO", argsData...)
}