Documentation
¶
Index ¶
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
}
Kafka represents Kafka implementation
func NewWithConfig ¶
NewWithConfig creates new Kafka service with messaging config
func (*Kafka) ConsumeMessages ¶
func (s *Kafka) ConsumeMessages(ctx context.Context, topic string, groupID string, handler func([]byte) error) error
ConsumeMessages consumes messages from Kafka
func (*Kafka) IsConnected ¶
IsConnected checks if the Kafka connection is valid
Click to show internal directories.
Click to hide internal directories.