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.
Click to show internal directories.
Click to hide internal directories.