kafka

package
v0.0.0-...-855f182 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Brokers   []string
	Topic     string
	Group     string
	Partition int
}

type EasyKafka

type EasyKafka struct {
	Logf func(string, ...interface{})
	// contains filtered or unexported fields
}

func NewEasyKafka

func NewEasyKafka(xLog *xlog.XLog) *EasyKafka

func (*EasyKafka) Read

func (easy *EasyKafka) Read(c *Config, ch chan *kafka.Message)

func (*EasyKafka) Write

func (easy *EasyKafka) Write(c Config, ch chan []*kafka.Message, resp chan []*kafka.Message)

func (*EasyKafka) WriteBatch

func (easy *EasyKafka) WriteBatch(c *Config, ch chan []*kafka.Message, resp chan []*kafka.Message)

Jump to

Keyboard shortcuts

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