mq

package
v0.0.0-...-7c4d03a Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close close

func InitKafka

func InitKafka(kafkaAddrs []string) (err error)

InitKafka init kafka

func PushKafka

func PushKafka(topic string, value string) (err error)

PushKafka push kafka

Types

type KafkaConsumer

type KafkaConsumer struct {
	Topic             string
	GoupName          string
	ZKRoot            string
	ZKAddrs           []string
	ProcessingTimeout time.Duration
	CommitInterval    time.Duration
}

KafkaConsumer kafka consumer

func (*KafkaConsumer) InitKafkaConsumer

func (kc *KafkaConsumer) InitKafkaConsumer(prehookF func(), handleF func(string), posthookF func()) error

InitKafkaConsumer run

Jump to

Keyboard shortcuts

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