kafka

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAsyncProducer

func NewAsyncProducer(c Config) (sarama.AsyncProducer, error)

NewAsyncProducer 创建一个异步生产者

func NewConsumer

func NewConsumer(c Config) error

NewConsumer 创建一个消费者

func NewSyncProducer

func NewSyncProducer(c Config) (sarama.SyncProducer, error)

Types

type Config

type Config struct {
	Addrs []string
	Topic string
}

Jump to

Keyboard shortcuts

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