mirror of
https://github.com/fhmq/hmq.git
synced 2026-05-06 07:35:32 +00:00
13 lines
188 B
Go
13 lines
188 B
Go
package broker
|
|
|
|
import (
|
|
"github.com/fhmq/hmq/plugins"
|
|
"github.com/fhmq/hmq/plugins/kafka"
|
|
)
|
|
|
|
func (b *Broker) Publish(e *plugins.Elements) {
|
|
if b.pluginKafka {
|
|
kafka.Publish(e)
|
|
}
|
|
}
|