kafka

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaReader added in v0.2.1

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

func NewKafkaReader added in v0.2.1

func NewKafkaReader(config KafkaReaderConfig) (*KafkaReader, error)

func (*KafkaReader) Close added in v0.2.1

func (kr *KafkaReader) Close() error

func (*KafkaReader) Read added in v0.2.2

func (kr *KafkaReader) Read() ([]byte, error)

type KafkaReaderConfig added in v0.2.1

type KafkaReaderConfig struct {
	Brokers       []string
	GroupId       string
	Topic         string
	QueueCapacity int
	MinBytes      int
	MaxBytes      int
}

type KafkaWritter added in v0.1.9

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

func NewKafkaWritter

func NewKafkaWritter(config KafkaWritterConfig) (*KafkaWritter, error)

func (*KafkaWritter) Close added in v0.1.9

func (kw *KafkaWritter) Close() error

func (*KafkaWritter) Write added in v0.1.9

func (kw *KafkaWritter) Write(msgs []Message)

type KafkaWritterConfig

type KafkaWritterConfig struct {
	Brokers      []string
	Topic        string
	MaxAttempts  int
	BatchSize    int
	BatchTimeout time.Duration
	WriteTimeout time.Duration
	LogFileName  string
}

type Message added in v0.2.0

type Message []byte

Jump to

Keyboard shortcuts

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