Skip to content

Commit

Permalink
load from autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin committed Apr 26, 2024
1 parent 27adaa5 commit 3cd5011
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events/publishers/autoload/autoload.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/edobtc/cloudkit/events/publishers/aws/lambda"
"github.com/edobtc/cloudkit/events/publishers/aws/sns"
"github.com/edobtc/cloudkit/events/publishers/filesystem"
"github.com/edobtc/cloudkit/events/publishers/rmq"
"github.com/edobtc/cloudkit/events/publishers/webhook"
"github.com/edobtc/cloudkit/events/publishers/websocket"
)
Expand All @@ -36,6 +37,8 @@ func NewPublisher(adapter string) (delivery.Publisher, error) {
return webhook.NewPublisher()
case "websocket", "ws":
return websocket.NewPublisher()
case "rabbitmq", "rmq", "amqp":
return rmq.NewPublisher()
default:
return nil, ErrAdapterNotFound
}
Expand Down

0 comments on commit 3cd5011

Please sign in to comment.