Documentation
¶
Index ¶
- func Consume(topic string) (message string, err error)
- func ConsumeReader(brokers []string, topic string, partition int, stop chan bool, done chan int) (err error)
- func Produce(topic string, message []string, partition int) (err error)
- func ProduceWriter(address []string, topic string, messages []kafka.Message) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeReader ¶
func Produce ¶
Produce use kafka-go Connection api, learn more:https://pkgo.dev/github.com/segmentio/kafka-go#readme-connection
func ProduceWriter ¶
ProduceWriter use kafka-go writer api, learn more:https://pkgo.dev/github.com/segmentio/kafka-go#readme-writer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.