wkafka

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WrapperKafka

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

Wrapper type

func NewWrapperKafka

func NewWrapperKafka() (*WrapperKafka, error)

Creates a new kafka wrapper with both consumer and producer

func NewWrapperKafkaConsumer

func NewWrapperKafkaConsumer(server, groupId,
	autoOffsetReset string) (*WrapperKafka, error)

Creates a new kafka wrapper with consumer

func NewWrapperKafkaProducer

func NewWrapperKafkaProducer() (*WrapperKafka, error)

Creates a new kafka wrapper with producer

func (*WrapperKafka) Close

func (wrapperKafka *WrapperKafka) Close()

Closes kafka connections

func (*WrapperKafka) Consumer

func (wrapperKafka *WrapperKafka) Consumer() (*kafka.Consumer, error)

Returns kafka consumer

func (*WrapperKafka) Producer

func (wrapperKafka *WrapperKafka) Producer() (*kafka.Producer, error)

Returns kafka producer

Jump to

Keyboard shortcuts

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