Documentation ¶
Index ¶
Constants ¶
View Source
const ( Connect = "connect" Publish = "publish" Subscribe = "subscribe" Unsubscribe = "unsubscribe" Disconnect = "disconnect" )
Variables ¶
This section is empty.
Functions ¶
func NewKafka ¶
func NewKafka(config *KafkaConfig) (*kafka, error)
Types ¶
type KafkaConfig ¶
type KafkaConfig struct { Addr []string `json:"addr"` ConnectTopic string `json:"onConnect"` SubscribeTopic string `json:"onSubscribe"` PublishTopic string `json:"onPublish"` UnsubscribeTopic string `json:"onUnsubscribe"` DisconnectTopic string `json:"onDisconnect"` DeliverMap map[string]string `json:"deliverMap"` }
Click to show internal directories.
Click to hide internal directories.