First Commit (#130)
Co-authored-by: Gary Barnett <gary.barnett@airsensa.com>
This commit is contained in:
1 parent
1d6979189a
commit
538bf70f5b
6 files changed
+511
-5
No files matched your search
@@ -32,7 +32,8 @@ type Elements struct {
|
||||
|
||||
const (
|
||||
//Kafka plugin name
|
||||
Kafka = "kafka"
|
||||
Kafka = "kafka"
|
||||
CSVLog = "csvlog"
|
||||
)
|
||||
|
||||
type BridgeMQ interface {
|
||||
@@ -43,6 +44,8 @@ func NewBridgeMQ(name string) BridgeMQ {
|
||||
switch name {
|
||||
case Kafka:
|
||||
return InitKafka()
|
||||
case CSVLog:
|
||||
return InitCSVLog()
|
||||
default:
|
||||
return &mockMQ{}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user