message_queue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

For generate mocks on sarama interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaClient

func NewKafkaClient(cfg KafkaConfig) (sarama.Client, error)

NewKafkaClient return new sarama.Client interface

Types

type KafkaConfig

type KafkaConfig struct {
	Brokers []string `mapstructure:"brokers"`
}

type SaramaAsyncProducer

type SaramaAsyncProducer interface {
	sarama.AsyncProducer
}

Jump to

Keyboard shortcuts

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