kafka

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BrokerList []string

	Topic string
	// contains filtered or unexported fields
}

Config kafka连接配置信息

func (*Config) NewConfig

func (cfg *Config) NewConfig(brokerList []string, topic string) *Config

NewConfig 初始化kakfa client

func (*Config) SyncConsumer

func (cfg *Config) SyncConsumer() error

SyncConsumer 订阅

func (*Config) SyncProducer

func (cfg *Config) SyncProducer(val string) error

SyncProducer 异步发送producer

Jump to

Keyboard shortcuts

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