Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSASLPublisherConfig ¶ added in v0.0.4
NewSASLPublisherConfig creates a new kafka publisher config with SASL authentication.
func NewSASLSubscriberConfig ¶ added in v0.0.4
NewSASLSubscriberConfig creates a new kafka subscriber config with SASL authentication.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher represents a kafka publisher.
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Subscriber represents a kafka subscriber.
func NewSubscriber ¶
func NewSubscriber( logger *zap.Logger, saramaConfig *sarama.Config, brokers []string, consumerGroup string, ) (*Subscriber, error)
NewSubscriber creates a new kafka subscriber.
func (Subscriber) Subscribe ¶
func (s Subscriber) Subscribe(channels ...string) (pubsub.Subscription[[]byte], error)
Subscribe subscribes to a kafka topic.
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Subscription represents a stream of events published to a kafka topic.
Click to show internal directories.
Click to hide internal directories.