queue

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, config Config) (interface{}, error)

func InitKafkaConsumer

func InitKafkaConsumer(brokerList []string) (*sarama.Consumer, error)

func InitKafkaConsumerGroup

func InitKafkaConsumerGroup(brokerList []string, groupId string) (*sarama.ConsumerGroup, error)

func InitKafkaProducer

func InitKafkaProducer(brokerList []string) (*sarama.AsyncProducer, error)

Types

type Config

type Config struct {
	Driver  string
	Host    string
	Kind    string
	GroupId string
}

Jump to

Keyboard shortcuts

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