worker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(cfg ReaderConfig) *kafka.Reader

Types

type Consumer

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

func (*Consumer) Close

func (consumer *Consumer) Close()

func (*Consumer) Start

func (consumer *Consumer) Start()

type ConsumerInterface

type ConsumerInterface interface {
	Start()
	Close()
}

func NewConsumer

func NewConsumer(config ReaderConfig) ConsumerInterface

type ReaderConfig

type ReaderConfig struct {
	Brokers []string
	Topic   string
	GroupID string
}

Jump to

Keyboard shortcuts

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