kafka

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 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) func()

KafkaClose: closes all kafka connections

func KafkaRoutine

func KafkaRoutine(kafkaState utils.KafkaState, pstakeConfig configuration.Config, protoCodec *codec.ProtoCodec, chain *relayer.Chain, ethereumClient *ethclient.Client)

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