kafka

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Brokers []string
}

func (*Config) NewReader

func (c *Config) NewReader(ctx context.Context, groupID, topic string, l log.Logger) Reader

func (*Config) NewWriter

func (c *Config) NewWriter(ctx context.Context, topic string) Writer

type ConfigDI added in v1.0.0

type ConfigDI interface {
	NewWriter(ctx context.Context, topic string) Writer
	NewReader(ctx context.Context, groupID, topic string, l log.Logger) Reader
}

type Reader

type Reader interface {
	Read() ([]byte, error)
	Close() error
}

type Writer

type Writer interface {
	Message(msg []byte) error
	Close() error
}

Jump to

Keyboard shortcuts

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