kafka

package module
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: AGPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaClient

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

func NewKafkaClient

func NewKafkaClient(config types.KafkaClientConfig) *KafkaClient

func (*KafkaClient) Consume

func (client *KafkaClient) Consume(callback func(message []byte) error) (err error)

func (*KafkaClient) Produce added in v0.0.2

func (client *KafkaClient) Produce(message []byte) (err error)

func (*KafkaClient) Stop added in v0.0.10

func (client *KafkaClient) Stop() (err error)

func (*KafkaClient) TestConnection added in v0.0.5

func (client *KafkaClient) TestConnection() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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