kafka

package
v0.0.0-...-f0caac9 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Dozer: kafka protocol module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

Kafka connection type

type DozerProtocolKafka

type DozerProtocolKafka struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Kafka protocol type.

func (*DozerProtocolKafka) Close

func (p *DozerProtocolKafka) Close() error

Close - Disconnect from the kafka broker.

func (*DozerProtocolKafka) Dial

func (p *DozerProtocolKafka) Dial(typ, host string, port int64) (uint64, error)

Dial - connect to a kafka broker

func (*DozerProtocolKafka) Init

func (p *DozerProtocolKafka) Init(args ...string) error

Init - intialize the kafka protocol

func (*DozerProtocolKafka) RecvFrom

func (p *DozerProtocolKafka) RecvFrom(id uint64, dest string, messages chan []byte, quit chan bool) error

RecvFrom - consume messages from a kafka topic and forward them to a channel until a quit signal fires.

func (*DozerProtocolKafka) SendTo

func (p *DozerProtocolKafka) SendTo(id uint64, dest string, messages chan []byte, quit chan bool) error

SendTo - publish messages to a kafka topic from a channel until a quit signal fires.

Jump to

Keyboard shortcuts

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