internal

package
v0.0.0-...-535b067 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 6 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 {
	*kafka.Consumer
}

func NewConsumer

func NewConsumer(groupID string, conf *kafka.ConfigMap) (*Consumer, error)

func (*Consumer) Receive

func (c *Consumer) Receive(ctx context.Context, topic string) (chan *kafka.Message, error)

type Producer

type Producer struct {
	*kafka.Producer
}

func NewProducer

func NewProducer(conf *kafka.ConfigMap) (*Producer, error)

func (*Producer) Send

func (p *Producer) Send(ctx context.Context, n int) (int, error)

Jump to

Keyboard shortcuts

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