kafka

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KafkaClose

func KafkaClose(kafkaState utils.KafkaState, end, ended chan bool) func()

KafkaClose: closes all kafka connections

func KafkaRoutine

func KafkaRoutine(kafkaState utils.KafkaState, protoCodec *codec.ProtoCodec, chain *relayer.Chain, ethereumClient *ethclient.Client, end, ended chan bool)

KafkaRoutine : starts kafka in a separate goRoutine, consumers will each start in different go routines no need to store any db, producers and consumers are inside kafkaState struct. use kafka.ProducerDeliverMessage() -> to produce message use kafka.TopicConsumer -> to consume messages.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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