consumer

package
v0.0.0-...-81c02da Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package consumer will have config details of kafka topic and also have the functionality of consuming the events from the kafka on corresponding topics

Index

Constants

This section is empty.

Variables

View Source
var (
	// In Channel
	In chan<- interface{}
	// Out Channel
	Out <-chan interface{}
	// CtrlMsgRecvQueue is the channel for receiving
	// internal messages read from intercomm message bus queue
	CtrlMsgRecvQueue chan<- interface{}
	// CtrlMsgProcQueue is the channel for processing
	// internal messages received from intercomm messae bus queue
	CtrlMsgProcQueue <-chan interface{}
)

Functions

func Consume

func Consume(ctx context.Context, topicName string)

Consume create a consumer for message bus the topic can be defined inside configuration file config.toml

func EventSubscriber

func EventSubscriber(event interface{})

EventSubscriber consume messages from PMB

func SubscribeCtrlMsgQueue

func SubscribeCtrlMsgQueue(topicName string)

SubscribeCtrlMsgQueue creates a consumer for the kafka topic

Types

This section is empty.

Jump to

Keyboard shortcuts

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