kafka

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(brokers []string, topic string) *Reader

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) ReadMessage

func (r *Reader) ReadMessage(ctx context.Context) ([]byte, error)

type Writer

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

func NewWriter

func NewWriter(addr, topic string) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) WriteMessage

func (w *Writer) WriteMessage(ctx context.Context, message []byte) error

Jump to

Keyboard shortcuts

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