kafka

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(t *testing.T, addr []string) *Client

func (*Client) Consume

func (c *Client) Consume(ctx context.Context, timeout time.Duration, topic string) *sarama.ConsumerMessage

func (*Client) Produce

func (c *Client) Produce(topic string, value []byte, headers ...sarama.RecordHeader)

func (*Client) ProduceWithKey

func (c *Client) ProduceWithKey(topic string, key, value []byte, headers ...sarama.RecordHeader)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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