kafka

package
v0.0.0-...-71dbe48 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(o Options, logger zerolog.Logger) (*Client, func(), error)

func (*Client) Consume

func (c *Client) Consume(ctx context.Context, topics []string, fn func(*kgo.Record))

func (*Client) Produce

func (c *Client) Produce(ctx context.Context, topic string, fn func(*bytebufferpool.ByteBuffer) error)

type Options

type Options struct {
	Urls     []string
	ClientID string `koanf:"client_id"`
}

func NewOptions

func NewOptions(k *koanf.Koanf) (*Options, error)

Jump to

Keyboard shortcuts

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