Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Gets the list of brokers
Brokers() []string
// Publishes a message on the given topic
// Returns partition, offset and error occurred if any
Produce(topic string, value interface{}) (partition int32, offset int64, err error)
// Consumes a message on the given topic and partition
// Returns error occurred if any
Consume(topic string, partition int32, msgCh chan interface{}) (error error)
SetTLSConfig(certFilepath, keyFilepath string) error
}
Client the kafka client
Click to show internal directories.
Click to hide internal directories.