mq

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 3 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 any

type ConsumerGroup

type ConsumerGroup string

type MessageHandler

type MessageHandler func(ctx context.Context, fieldLogger logrus.FieldLogger, key []byte, value []byte)

type PartitionId

type PartitionId int32

type Producer

type Producer interface {
	Send(partitionKey []byte, value []byte) error
}

type Queue

type Queue interface {
	CreateProducer() (Producer, error)
	CreateConsumer(group ConsumerGroup, partition PartitionId, handler MessageHandler) (Consumer, error)
}

Queue is the abstraction of a partitioned message queue.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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