kafka

package
v0.0.0-...-984c388 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address               string
	WriterTimeout         time.Duration
	EnableTopicGeneration bool
}

func NewConfig

func NewConfig() Config

type Reader

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

func NewReader

func NewReader(cfg Config) Reader

func (Reader) Read

func (r Reader) Read(ctx context.Context, task messaging.ReaderTask) error

type Writer

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

func NewWriter

func NewWriter(cfg Config) (Writer, func())

func (Writer) Write

func (w Writer) Write(ctx context.Context, msgs []messaging.Message) error

Jump to

Keyboard shortcuts

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