kafka

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

Consumer abstracts hub-of-hubs-kafka-transport kafka-consumer's generic usage.

func NewConsumer

func NewConsumer(log logr.Logger, conflationManager *conflator.ConflationManager,
	statistics *statistics.Statistics) (*Consumer, error)

NewConsumer creates a new instance of Consumer.

func (*Consumer) Register

func (c *Consumer) Register(registration *transport.BundleRegistration)

Register function registers a msgID to the bundle updates channel.

func (*Consumer) Start

func (c *Consumer) Start()

Start function starts the consumer.

func (*Consumer) Stop

func (c *Consumer) Stop()

Stop stops the consumer.

type Message

type Message struct {
	ID      string `json:"id"`
	MsgType string `json:"msgType"`
	Version string `json:"version"`
	Payload []byte `json:"payload"`
}

Message abstracts a message object to be used by different transport components.

Jump to

Keyboard shortcuts

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