kafka

package
v0.0.0-...-059ff10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kafka

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

Kafka type to hold reader and writer instances

func GenerateFromConfig

func GenerateFromConfig(ctx context.Context, configPath string) *Kafka

GenerateFromConfig generates readers and writes from a given config file

type Reader

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

Reader is wrapper around kafka.Reader

func GenerateReader

func GenerateReader(ctx context.Context, brokers []string, topic string, groupID string) *Reader

GenerateReader creates a reader kafka instance to respond to incoming requests

type Writer

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

Writer is a wrapper around kafka.Writer

func GenerateWriter

func GenerateWriter(ctx context.Context, brokers []string, topic string) *Writer

GenerateWriter creates a writer kafka instance to make outgoing responses

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳