Documentation ¶
Index ¶
- Variables
- func Consume(ctx context.Context, topicNames []Topic, batchHandler ConsumeBatchHandler) error
- func EnvAddrsVersion() (addrs []string, version sarama.KafkaVersion)
- func Produce(topic Topic, key, value sarama.Encoder) error
- func Unuse() (err error)
- func UseConsumer(addrs []string, version sarama.KafkaVersion, groupId string, ...) (err error)
- func UseProducer(addrs []string, version sarama.KafkaVersion) (err error)
- func Version(v string) (sarama.KafkaVersion, error)
- type ConsumeBatchHandler
- type Topic
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TopicMembership = Topic{/* contains filtered or unexported fields */} TopicLiquidity = Topic{/* contains filtered or unexported fields */} TopicOperation = Topic{/* contains filtered or unexported fields */} )
Functions ¶
func Consume ¶
func Consume(ctx context.Context, topicNames []Topic, batchHandler ConsumeBatchHandler) error
func EnvAddrsVersion ¶
func EnvAddrsVersion() (addrs []string, version sarama.KafkaVersion)
func UseConsumer ¶
func UseProducer ¶
func UseProducer(addrs []string, version sarama.KafkaVersion) (err error)
Types ¶
type ConsumeBatchHandler ¶
type ConsumeBatchHandler func(msgs []*sarama.ConsumerMessage) (markFlags []bool, errs []error)
Click to show internal directories.
Click to hide internal directories.