kafka

package
v0.0.0-...-37fef2a Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kafka_Topic_Extractor_EventOnChain    = "Kafka_Topic_Extractor_EventOnChain"
	Kafka_Group_RelayCluster_EventOnChain = "Kafka_Group_RelayCluster_EventOnChain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerRegister

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

func (*ConsumerRegister) Close

func (cr *ConsumerRegister) Close()

func (*ConsumerRegister) Initialize

func (cr *ConsumerRegister) Initialize(brokerList []string)

func (*ConsumerRegister) RegisterTopicAndHandler

func (cr *ConsumerRegister) RegisterTopicAndHandler(topic string, groupId string, data interface{}, action HandlerFunc) error

type HandlerFunc

type HandlerFunc func(event interface{}) error

type KafkaOptions

type KafkaOptions struct {
	Brokers []string
}

type MessageProducer

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

func (*MessageProducer) Close

func (md *MessageProducer) Close() error

func (*MessageProducer) Initialize

func (md *MessageProducer) Initialize(brokerList []string) (err error)

func (*MessageProducer) SendMessage

func (md *MessageProducer) SendMessage(topic string, data interface{}, key string) (partition int32, offset int64, sendErr error)

Jump to

Keyboard shortcuts

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