Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProducer ¶
func GetProducer() (sarama.SyncProducer, error)
Types ¶
type KafkaSender ¶
type KafkaSender struct {
// contains filtered or unexported fields
}
func New ¶
func New() *KafkaSender
func (*KafkaSender) Push ¶
func (p *KafkaSender) Push(data map[string]interface{}) error
func (*KafkaSender) SetTopic ¶
func (p *KafkaSender) SetTopic(topic string)
Click to show internal directories.
Click to hide internal directories.