Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v1.0.20
type Client interface { // Get get kafka client Get() sarama.Client // Close close kafka client Close() error // SendMessage send message to kafka SendMessage(ctx context.Context, message *sarama.ProducerMessage) error // GroupConsume consume kafka group GroupConsume(ctx context.Context, group string, topics []string, handler sarama.ConsumerGroupHandler) error }
Client is a kafka client wrapper
Click to show internal directories.
Click to hide internal directories.