kafka

package
v0.0.0-...-7604275 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider = wire.NewSet(NewKafka)

Functions

This section is empty.

Types

type Kafka

type Kafka struct {
	Address []string
}

func NewKafka

func NewKafka(address []string) *Kafka

func (*Kafka) Publish

func (k *Kafka) Publish(topic string, md interface{}, content []byte) error

func (*Kafka) Subscribe

func (k *Kafka) Subscribe(topic string, groupId string, f func(*sarama.ConsumerMessage) error) (sarama.Client, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL