One new great parser, deprecated all other parsers (gitlab, gitea).

This commit is contained in:
2019-03-05 19:31:13 +05:00
parent b13cf6ecec
commit c93fa504ad
11 changed files with 50 additions and 863 deletions

View File

@@ -81,7 +81,7 @@ func (c *Context) RegisterSlackAPIServerInterface(sasi slackapiserverinterface.S
c.SlackAPIServer.Initialize()
}
func (c *Context) SendToParser(name string, message slackmessage.SlackMessage) map[string]string {
func (c *Context) SendToParser(name string, message slackmessage.SlackMessage) map[string]interface{} {
parser, found := c.Parsers[strings.ToLower(name)]
if !found {
c.Log.Errorf("Parser '%s' not found, will use default one!", name)