Documentation ¶
Index ¶
- type Kafka
- func (k *Kafka) AsyncProducer(ctx context.Context, msg chan *sarama.ProducerMessage, sf successFunc, ...)
- func (k *Kafka) Close()
- func (k *Kafka) Consumer(ctx context.Context, topic string, partition int32, offset int64, rf rmsgFunc, ...)
- func (k *Kafka) ConsumerGroup(ctx context.Context, gid string, topics []string, rf rmsgFunc)
- func (k *Kafka) SyncProducer(msg *sarama.ProducerMessage) (part int32, offset int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
func (*Kafka) AsyncProducer ¶
func (k *Kafka) AsyncProducer(ctx context.Context, msg chan *sarama.ProducerMessage, sf successFunc, ef errorFunc)
func (*Kafka) ConsumerGroup ¶
func (*Kafka) SyncProducer ¶
同步消息模式
Click to show internal directories.
Click to hide internal directories.