queue

package
v0.0.0-...-b4f530e Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

type Producer interface {
	SendMessage(ctx context.Context, topic string, key string, message []byte) error
	Close() error
}

Producer is the interface that wraps the basic Produce method

type SaramaKafkaConsumer

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

func NewSaramaKafkaConsumer

func NewSaramaKafkaConsumer(brokers []string, groupID string) (*SaramaKafkaConsumer, error)

func (*SaramaKafkaConsumer) Close

func (sc *SaramaKafkaConsumer) Close() error

func (*SaramaKafkaConsumer) ConsumeMessages

func (sc *SaramaKafkaConsumer) ConsumeMessages(ctx context.Context, topics []string) error

type SaramaKafkaProducer

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

func NewSaramaKafkaProducer

func NewSaramaKafkaProducer(brokers []string) (*SaramaKafkaProducer, error)

func (*SaramaKafkaProducer) Close

func (sp *SaramaKafkaProducer) Close() error

func (*SaramaKafkaProducer) SendMessage

func (sp *SaramaKafkaProducer) SendMessage(ctx context.Context, topic string, key string, message []byte) error

Jump to

Keyboard shortcuts

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