Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles the subscriptions to Kafka topics
func NewClient ¶
func NewClient( ctx context.Context, brokers []string, groupID string, config *sarama.Config, opts ...Option, ) (*Client, error)
NewClient constructor creates the client using the specified config sarama is used internally to connect to kafka brokers brokers is a slice of broker addresses config is a sarama.Config struct groupID is consumer group id
Click to show internal directories.
Click to hide internal directories.