kafkac

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExampleProducerClient    sarama.SyncProducer
	ExampleConsumerClient    sarama.ConsumerGroup
	ExampleConsumerClientPro sarama.ConsumerGroup
	Topic                    = "CcCode"
)

Functions

func ExampleConsume

func ExampleConsume()

func ExampleConsumePro

func ExampleConsumePro()

func ExampleSendMessage

func ExampleSendMessage(message ExampleMessage)

func InitStartConsumer

func InitStartConsumer(address []string, groupID string) (sarama.ConsumerGroup, error)

InitStartConsumer 传不同的groupID

func InitStartProducer

func InitStartProducer(address []string) (sarama.SyncProducer, error)

Types

type ExampleMessage

type ExampleMessage struct {
	Id   int64
	Name string
}

Jump to

Keyboard shortcuts

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