kafka

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_KEY     = "Key"
	HANDLER_KEY = "Handler"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	DealMessage(topic string, partition int32, value []byte) error
}

type KafkaConsumer

type KafkaConsumer struct {
	Ctx       context.Context
	Ioc       iface.IIoc
	Name      string
	Brokers   string
	Topic     string
	Group     string
	Processor []interface{}
	// contains filtered or unexported fields
}

func (*KafkaConsumer) Execute

func (kc *KafkaConsumer) Execute()

Jump to

Keyboard shortcuts

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