kafka

package
v0.0.0-...-c02a6a4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	*kafka.Publisher
	PartitionKey kafka.GeneratePartitionKey
	Key          string
	Config       *config.Configuration `inject:"config"`
}

func (*Publisher) SetKey

func (p *Publisher) SetKey(key string)

func (*Publisher) Shutdown

func (p *Publisher) Shutdown() error

func (*Publisher) Startup

func (p *Publisher) Startup() error

type Subscriber

type Subscriber struct {
	*kafka.Subscriber
	Conf *config.Configuration `inject:"config"`
}

func (*Subscriber) Consume

func (c *Subscriber) Consume(topic string, messages <-chan *message.Message)

func (*Subscriber) Shutdown

func (s *Subscriber) Shutdown() error

func (*Subscriber) Startup

func (s *Subscriber) Startup() error

Jump to

Keyboard shortcuts

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