kafkastreamer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-3-Clause Imports: 7 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
}

func (*Consumer) Close

func (c *Consumer) Close() error

func (*Consumer) Recv

func (c *Consumer) Recv(ctx context.Context) (*workflow.Event, workflow.Ack, error)

type Producer

type Producer struct {
	Topic         string
	Writer        *kafka.Writer
	WriterTimeout time.Duration
}

func (*Producer) Close

func (p *Producer) Close() error

func (*Producer) Send

func (p *Producer) Send(ctx context.Context, recordID int64, statusType int, headers map[workflow.Header]string) error

type StreamConstructor

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

func New

func New(brokers []string) *StreamConstructor

func (StreamConstructor) NewConsumer

func (s StreamConstructor) NewConsumer(topic string, name string, opts ...workflow.ConsumerOption) workflow.Consumer

func (StreamConstructor) NewProducer

func (s StreamConstructor) NewProducer(topic string) workflow.Producer

Jump to

Keyboard shortcuts

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