Skip to content

Commit

Permalink
tested rabbitmq
Browse files Browse the repository at this point in the history
Signed-off-by: yuvraj <evalsocket@gmail.com>
  • Loading branch information
yindia authored and poiana committed Mar 26, 2021
1 parent e80cee9 commit 9895bea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ func forwardEvent(falcopayload types.FalcoPayload) {
go openfaasClient.OpenfaasCall(falcopayload)
}

if config.Rabbitmq.URL != "" && config.Rabbitmq.Queue != "" && (falcopayload.Priority >= types.Priority(config.Openfaas.MinimumPriority) || falcopayload.Rule == testRule) {
go rabbitmqClient.Publish(falcopayload)
}

if config.WebUI.URL != "" {
go webUIClient.WebUIPost(falcopayload)
}
Expand Down

0 comments on commit 9895bea

Please sign in to comment.