Documentation
¶
Index ¶
- func Close()
- func Init() (err error)
- func New(cfg config.Kafka) (sarama.Client, error)
- func NewAsyncProducer(client sarama.Client) (sarama.AsyncProducer, error)
- func NewConsumerGroup(client sarama.Client, groupID string) (sarama.ConsumerGroup, error)
- func NewSyncProducer(client sarama.Client) (sarama.SyncProducer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new Kafka client instance with given configuration. It's the caller's responsibility to close the client, caller should always call Close() when it's no longer needed.
func NewAsyncProducer ¶
func NewAsyncProducer(client sarama.Client) (sarama.AsyncProducer, error)
NewAsyncProducer creates a new AsyncProducer using the given client
func NewConsumerGroup ¶
NewConsumerGroup creates a new ConsumerGroup with the given client
func NewSyncProducer ¶
func NewSyncProducer(client sarama.Client) (sarama.SyncProducer, error)
NewSyncProducer creates a new SyncProducer using the given client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.